s1=input( "请输入字符串:")
n =len(s1)
p=[]
s=""
for i in range(n):
p.append(s1[i] )
while j < n:
if p[i]==p[j]:
for k in range(j+1,n):
n-=1 j-=1
j+=1
print(s)