S = input() s = "" for i in range(len(S) - 1): if i == 0: s += S[0:1] elif S[i:i + 1] != S[i + 1:i + 2]: s += S[i + 1:i + 2] else: continue print(s)