#84Easy
Shortest word
Time: 1 s · Memory: 256 MB
- Strings
Statement
You are given a string. Find the length of its shortest word. A word is a continuous sequence of non-space characters (punctuation is part of the word).
Input format
A single line — a string of to ASCII characters (codes –: letters, digits, punctuation and spaces). There is at least one word; words may be separated by several spaces.
Output format
A single integer — the length of the shortest word.
Examples
Input
Assalomu alaykum aziz do'stlar
Output
4
Input
kitob va daftar
Output
2
Note
In the first example the word lengths are — the answer is . In the second the extra spaces are not words: va — .
