s = input() counts = {} for char in s: if char not in counts: counts[char] = 0 counts[char] += 1 min_count = min(counts.values()) result = "" for char in s: if counts[char] > min_count: result += char print(result)
s = input() counts = {} for char in s: if char not in counts: counts[char] = 0 counts[char] += 1 min_count = min(counts.values()) result = "" for char in s: if counts[char] > min_count: result += char print(result)