#https://open.kattis.com/problems/apaxiaaans
name = input()
newname = ""
for i in range(len(name)-1):
	if name[i] != name[i+1]:
		newname += name[i]
print(newname + name[-1])

1d3074a3c07c32edfc085ebf8641c5196937ba4f
<mask token>

<mask token>
for i in range(len(name) - 1):
    if name[i] != name[i + 1]:
        newname += name[i]
print(newname + name[-1])

name = input()
newname = ''
for i in range(len(name) - 1):
    if name[i] != name[i + 1]:
        newname += name[i]
print(newname + name[-1])

#https://open.kattis.com/problems/apaxiaaans
name = input()
newname = ""
for i in range(len(name)-1):
	if name[i] != name[i+1]:
		newname += name[i]
print(newname + name[-1])
