#P356. 练61.1 统计字符数
练61.1 统计字符数
Description
Given a string composed of the characters from to , count which character appears most frequently?
Input Format
The input contains one line, a string with length not exceeding .
Output Format
Output one line containing the character that appears most frequently and its count, separated by a space. If multiple characters appear the same maximum number of times, output the character with the smallest ASCII code.
Sample
abbcccc 3
Related
In following homework: