def f(_):x=-~len(_)/2;return"{%s}"%(_[1:]and f(_[:x])+f(_[x:])or _) print f(raw_input())