Number of sentences#8980

Number of sentences

1 second
128 megabytes
Very easy

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 "...", "!!!" and "?!" in the text.

Input

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

Output

Print the number of sentences in the text.

Examples

Example 1

Loading
Loading