'''
Statement
Given a list of integers, count how many distinct numbers it has. This task can be solved in a single line.

Example input
1 2 3 2 1

Example output
3
'''
print(len(set(input().split())))
