#C13183. Most Frequent Characters

    ID: 42693 Type: Default 1000ms 256MiB

Most Frequent Characters

Most Frequent Characters

Given a string S, determine all the characters that appear most frequently in it. The string may contain letters, numbers, special characters, and spaces. The comparison is case‐sensitive, so 'A' and 'a' are considered different characters. If there are multiple characters with the highest frequency, output all of them in alphabetical order.

Note: The input is provided as a single line from standard input and the result should be printed to standard output. If the input string is empty, nothing should be printed.

inputFormat

The input consists of a single line containing the string S.

outputFormat

Print the characters with the highest frequency in S in alphabetical order, separated by a single space. If S is empty, print nothing.

## sample
abracadabra
a