#C14790. Longest Word Length

    ID: 44478 Type: Default 1000ms 256MiB

Longest Word Length

Longest Word Length

Given a string s consisting of words separated by spaces, your task is to determine the length of the longest word in the string.

If the input string is empty, the answer should be 0. Words are defined as contiguous sequences of non-space characters.

Note: Use standard input (stdin) to read the input and standard output (stdout) to print the result.

inputFormat

The input consists of a single line containing the string s. The string may include spaces and punctuation.

outputFormat

Output an integer representing the length of the longest word in the given string s.

## sample
hello
5