s = input() for i in range(len(s)): if i == 0: print(s[i],end='') elif s[i - 1] == s[i]: continue else: print(s[i],end='')