from re import S s = input() d = {} for i in s: if i not in d: d[i] = s.count(i) m = min(d.values()) for i in s: if d[i] != m: print(i,end='')