s=System.in.text f={b,e->"{${e+~b?f(b,b=b-~e>>1)+f(b,e):s[b]}}"} print f(0,s.count)