#C4389. Shortest Word Length

    ID: 47921 Type: Default 1000ms 256MiB

Shortest Word Length

Shortest Word Length

Given a sentence string s, your task is to determine the length of the shortest word in the sentence. A word is defined as a sequence of characters separated by whitespace. For example, if s = \(\text{the quick brown fox}\), the shortest word is \(\text{the}\) which has a length of 3.

Read the input from standard input and output the result to standard output.

inputFormat

The input consists of a single line containing the sentence s.

outputFormat

Output a single integer that represents the length of the shortest word in the input sentence.

## sample
the quick brown fox
3