LogiQuest

96. Longest Word

EasyString

Print the longest word in the sentence. If several have the same maximum length, print the first one.

Input format

A single line of words separated by spaces.

Output format

The longest word.

Example 1

Input

I love programming in Python

Output

programming

Example 2

Input

a bb cc d

Output

bb

Constraints

1 ≤ |s| ≤ 10⁵

Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.

Loading the MyLoginn IDE…