Try our new interface for solving problems

Number of words

Number of words

Time limit 1 second
Memory limit 128 MiB

There is some sentence in unknown language. You need to count the number of words in it. The letters of the alphabet in unknown language are the letters of the Latin alphabet and Arabian digits. It is guaranteed, that other symbols, except blanks and punctuation marks, are not present in sentence.

Input data

One line with a sentence in unknown language.

Output data

Print the number of words in the sentence.


Input example #1
Hello, world!
Output example #1