s = input() d = {} for i in s: d[i] = d.get(i,0) + 1 Min = min(d.values()) for i in s: if d[i] == Min: s = s.replace(i,'') print(s)