Problem Description

A sentence is provided. Words are separated by spaces. Output the longest word. If tie, output the first one.

Input Format

One line sentence.

Output Format

One word.

Sample Test Case

Input:
I love programming so much
Output:
programming

Constraints

Length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next