시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 6 5 5 83.333%

문제

Pirates talk a funny way. They say word where the letters are repeated more than they need to be. We would like know which letter appears the most frequently in a Pirate word.

For example: In the word “arrrrrghh”, the letter “r” appears 5 times while “h” appears twice.

Write a program that reads a pirate word from the terminal and writes the letter that occurs most frequently.

It is guaranteed that only one letter is the most repeated. That is, words like “aipo” won’t appear because no single letter wins.

입력

The input will consist of two lines.

The first line will contain the size of the word and the second the word to process.

The word will only contain lowercase letters from a to z. The size of the word will be at most 1000 characters. No spaces or other symbols will appear.

출력

Print a single line with the character that appears the most and the number of occurrences.

예제 입력

10
arrrrrrghh

예제 출력

r 6

예제 입력 2

9
shhhiiver

예제 출력 2

h 3

예제 입력 3

20
oxlbelhfikrzxcgxpfcy

예제 출력 3

x 3

힌트