from sys import stdin
print(len(set(stdin.read().split()[1:])))