char s[];v;main(b,e){*s||read(0,s,e=919);printf("{");e-b?main(b,v=e+b>>1),main(++v,e):putchar(s[b-1]);printf("}");}