Read n lines, print the longest word from each line. If several words tie for the longest, return the first one.
Write a complete program: read the input with input() and print the result with print().
Input
3
the quick brown fox
hello world
a bb ccc
Output
quick
hello
ccc