from itertools import groupby S = [x for x in input()] ans='' for i,_ in groupby(S):ans+=i print(ans)