cho.sh
Notes
Loading...

Most Frequent Letters

Time limit

2s

Memory limit

128 MB

Problem

In an English text, some lowercase letters may appear more often than others. Given a text, find every lowercase letter that appears the most often.

Input

The text is given from the first line through the end of file. It has at most 50 lines, and each line has at most 50 characters. Each line contains only spaces and lowercase English letters. The whole input contains at least one lowercase letter.

Output

Print the lowercase letters with the highest frequency on one line. If several letters share that frequency, print all of them in alphabetical order without spaces.