while 1:b=input();print(b[0]+''.join(b[:-1][x+2:x:-1]for x in range(0,60,2))+b[-1])