nums = set([int(arg) for arg in input().split()]) print(len(nums))