LearnPy Hub
← Strings problems
Medium

Longest Word

Read a sentence and print its longest word. If several words share the longest length, print the first one.

Input

One line.

Output

One word.

Sample 1

Input
I love programming in Python
Output
programming

Sample 2

Input
a bb cc d
Output
bb
solution.py
Output appears here
Longest Word · Python practice problem · LearnPy Hub