a = input() b = {} c = list(set(a)) for i in range(len(c)): v = a.count(c[i]) b[c[i]] = v d = sorted(list(b.values()))[0] for key, value in sorted(b.items()): if value == d: a = a.replace(key, "") print(a)