Your task is to write a program which reads a text and prints two words. The first one is the word which is arise most frequently in the text. The second one is the word which has the maximum number of letters.
The text includes only alphabetical characters and spaces. A word is a sequence of letters which is separated by the spaces.
A text is given in a line. You can assume the following conditions:
The two words separated by a space.
Thank you for your mail and your lectures