e-olymp
Problems

Number of words

Number of words

Find the number of words in the given text.

Input

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 and numbers.

Output

Print the number of words in the text.

Time limit 1 seconds
Memory limit 122.17 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