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