#C2724. Longest Word Finder
Longest Word Finder
Longest Word Finder
Your task is to find the longest word in a given string and determine its length. The string consists of words separated by spaces. In the event of a tie (i.e. more than one word having the longest length), choose the word that appears first in the string.
The length of a word is simply the count of its characters.
You should read the input from standard input and print the output to standard output. The output must consist of the longest word, followed by a space, and then the length of the word. If the input string is empty or contains only spaces, output an empty string followed by a space and a 0.
inputFormat
A single line containing a string. The string may include leading or trailing spaces.
outputFormat
Output the longest word, followed by a space and then its length. If no valid word exists, output an empty string followed by a space and 0.## sample
The quick brown fox.
quick 5