while True:
try:
strs = input()
from collections import Counter
dicts = Counter(strs) # 可以形成一个字典,以字母为key,出现的次数为value
MinNum = min(dicts.values()) # 找到字母出现次数最小数
for key in dicts:
if dicts[key] == MinNum: # 如果字典的value是最小出现次数,则删除对应字母
strs = strs.replace(key, "") # 把对应的字符替换成空
print(strs)
except:
break