s = input() t = "" for i in s: if t != i: print(i,end="") t = i print()