eolymp
bolt
Try our new interface for solving problems
Problems

Number of words

Number of words

Find the number of words in the given text. \InputFile The English text is given in one line, the number of characters does not exceed $250$. It is guaranteed that the text does not contain dashes, hyphens, digits, or numbers. \OutputFile Print the number of words in the text.
Time limit 1 second
Memory limit 128 MiB
Input example #1
Hello world!
Output example #1
2
Input example #2
Hello world! Hello,    country!
Output example #2
4
Source SFE-2010 Variant 9