#45142: python 「無分號」 一行解


x__1 (^_^ 809-34)


print(int(input())*0+len(set(input().split())))