11259 - Typewriter   

Description

Long time ago, a writer should use a typewriter to print the letters on the paper, rather than on the screen. However, if any key on the typewriter is broken, the work will be suspended till the key is repaired. Your work is to design a program that can check which letter is used most and which letter is used least. Then, you can prepare a new key in advance to repair the broken one. In addition, we do not need to prepare the key for the letter that appears least because many other keys will break before it.

Input

A random string containing only letters (without digits).

They will be either upper case or lower case.

The length of input string will less than 50.

Output

Show the letter that appears most and least (in lower case) with how many times they appear.

Please follow the format of sample output.

If more than one letter counts the same times, print the previous one of the ahphabetical sequence.

Upper case or lower case of the same letter will be regarded as the same letter.

Output format :

printf("max: %c,%d\n",MAX_LETTER,MAX);
printf("min: %c,%d\n",MIN_LETTER,MIN);

Sample Input  Download

Sample Output  Download

Tags




Discuss