while 1:l=input();print(''.join(sorted(set(l),key=l.find)))