from collections import defaultdict line = input() d = defaultdict(int) for ch in line: d[ch] += 1 # 出现次数最少 min_time = min(d.values()) for ch in line: if d[ch] != min_time: print(ch, end=''