import string alpha = list(string.ascii_lowercase) S = input() for i in range(26): S = S.replace(alpha[i]+alpha[i], alpha[i]) print(S)