S=input() D="abcdefghijklmnopqrstuvwxyz" for i in range(0,26): S=S.replace(D[i]*2, D[i]) print(S)