word = input()
result = {}
for ch in word:
if ch in result:
result[ch] += 1
else:
result[ch] = 1
answer = sorted(result.items(), key=lambda x: (-x[1], x[0]))
print(answer[0][0])
To embed this project on your website, copy the following code and paste it into your website's HTML: