s=input() res='' for i in range(len(s)): if i>0 and s[i]==s[i-1]: continue res+=s[i] print(res)