#182 new # your code goes here #mport collections N=int(input()) A=[int(i) for i in input (). split ()] print(len(set(A)))