CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #801 #803 →

#802. Most common word

Print the word that appears most often in the sentence. If there is a tie, print the one that comes first alphabetically. ### Input One line. ### Output One word.

Examples

Input
robot scratch robot scratch level banana python
Output
robot
Input
banana python banana level python level level level scratch python python scratch
Output
level

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!