1s = input()
2
3changed = True
4while changed and s != "":
5 changed = False
6 for i in range(len(s) - 1):
7 if s[i] == s[i+1]:
8 changed = True
9 s = s[:(i)] + s[(i+2):]
10 break
11
12if s == "":
13 print('Empty String')
14else:
15 print(s)