S=input() A=[chr(i) for i in range(ord('a'),ord('z')+1)] for c in A: S=S.replace(c+c,c) print(S)