s = input().strip() for c in range(ord("0"), ord("z") + 1): sc = chr(c) dc = f"{chr(c)}{chr(c)}" while dc in s: s = s.replace(dc, sc) print(s)