Electronic message
Description
An electronic message board at the beach in Sunny beach shows information about the weather and the temperature of the air and the seawater. The messages contain small and capital Latin letters, digits and spaces. At the end of the information there is a full-stop.
Every day Loni the elephant checks the weather conditions from the message board. One day Loni finds out that the board is broken and the message contains other characters, different from the regular. Curious as he is, he wants to find out how long is the longest sequence of broken characters on the board.
Help him write a program, which reads the message and produces the maximum length of sequential broken characters.
Input
On the first and only line of the standard input, there will be a text ending with full-stop .
Output
Print to the standard output a number - the length of the longest sequence of broken characters (different from letter, digit, space).
Constraints
The full-stop will always be at the end of the message and it does not get broken. The message always has exactly one full-stop. The message will always be shorter than 1000 characters.
Examples
Input
Tempera#### na @#$ata 23 grad#%&.
Output
4
Моето решение, което гърми на 3 места.
Правих всякакви тестове, но не разбирам от къде идва проблема.