Олимпиадный тренинг

Задача 43377. Just different words


Задача

Темы: Множества
Masha reads books most often in electronic form. Today she wanted to know how many different words are in the book she is currently reading. Help Masha write a program for this.
 A word is a sequence of consecutive non-whitespace characters separated by one or more spaces.
Punctuation .,;:-?! must be ignored.


Input
The program receives a line of text.

Imprint
Print the number of distinct words in this string.
 
 
Examples
# Input Output
1 This is my book! 4
2 The next day, business began to pick up. Not abruptly, but bit by bit. A sack of potatoes here... 18