S = input() bef = "" for s in S: if bef == s: bef = "" else: print(end = s) bef = s print()