Time

12:27:41
23 May 2012
Version for print

Quantity of words

   There is some offer in unknown language. To count quantity of words in it. Letters of the alphabet in unknown language are letters of the latin alphabet and the Arabian figures. It is guaranteed, that other symbols, except for blanks and punctuation marks in the offer is not present.


Specifications

    Input

   In the only thing to a line the offer in unknown language is set.

   Output

   Singular - quantity of words in it.


Problem information

Time Limit: 0.1 seconds
Memory Limit: 64 MB
Balls for the passed test: 10
Complexity: 48% 295/569
Classes: Algorithms on strings

Example

Example input

Hello, world!

Example output

2


← Teleport (RU) Problems Word the champion →