#000129

Most Common Word

You will be given a piece of text. It will contain uppercase and lowercase letters of the English alphabet, spaces, newlines, periods, commas and question marks. A word is defined as a continuous sequence of letters. Words are case-insensitive: ABC and abc is the same word.

Your task is to find the word that occurs the largest number of times in the text. There will be only one word occurring the largest number of times. Output the word and the number of its occurrences.



InputThe program will be given the input text on standard input. It will only contain letters, spaces, newlines, periods, commas and question marks. You may assume that the number of characters in the input will be less than 1000.


OutputOutput a single line containing the most common word (in lowercase letters), a space, and the number of occurences of that word.


Sample input
You there, hello, how are you?
Hello, I am fine, thank you,how about you?

Sample output
you 4

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.