while 1: x=raw_input() r=x[0] n=len(x) for i in range(1,n-1-n%2,2):r+=x[i+1]+x[i] print r+x[-1-n%2:]