S = input() for i in range(26): alp = chr(i+97) S = S.replace(alp*2, alp) print(S)