def f(s):l=0-len(s)/2;return"{%s}"%(-~l*s or f(s[:l])+f(s[l:])) print f(raw_input())