Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

readme.md

Description

Во входном файле записан текст. Словом считается последовательность непробельных символов идущих подряд, слова разделены одним или большим числом пробелов или символами конца строки. Определите, сколько различных слов содержится в этом тексте.

Input Format:

Вводится текст.

Output Format:

Выведите ответ на задачу.

Example Test Cases

Example 1

Input:

She sells sea shells on the sea shore;
The shells that she sells are sea shells I'm sure.
So if she sells sea shells on the sea shore,
I'm sure that the shells are sea shore shells.

Output:

19

Example 2

Input:

AA aa Aa aA

Output:

4

Example 3

Input:

a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

Output:

1