Number of sentences

Number of sentences

Time limit 1 second
Memory limit 128 MiB

Find the number of sentences in the text. Consider a sentence ending with one of the characters "." (point), "!" (exclamation point) or "?" (question mark), but there are no character sets like "...", "!!!" и "?!" in the text.

Input data

One line of text that consists of Latin characters, punctuation marks and spaces. Line contains no more than 200 symbols.

Output data

Print the number of sentences in the text.


Input example #1
Hello, world!
Output example #1
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"