from sys import stdout wt=stdout.write def main(): S=input() wt(S[0]) for i in range(1,len(S)): if S[i-1]!=S[i]: wt(S[i]) return main()