LearnPy Hub
← Dictionaries problems
Medium

Most Common Word

Read a sentence and print the most common word, ignoring case. If tied, print the one that appeared first.

Input

One line.

Output

One word.

Sample 1

Input
The cat and the hat
Output
the

Sample 2

Input
a b c
Output
a
solution.py
Output appears here
Most Common Word · Python practice problem · LearnPy Hub