'''
Statement
Given a string consisting of words separated by spaces. Determine how many words it has. To solve the problem, use the method count.

Example input
Hello world

Example output
2
'''
print(len(input().split()))
