#coding=UTF-8 #オーダーを下げられるように頑張る。 N=int(input()) mojir=input() hyo=mojir.split(" ") ans=0 #ここまでは新規性無し sortedlst=sorted(hyo) idx=0 while idx < len(sortedlst): if idx==len(sortedlst)-1: ans=ans+1 break elif sortedlst[idx+1] == sortedlst[idx]: idy=idx+1 while idy < len(sortedlst): if sortedlst[idy] != sortedlst[idx]: break idy=idy+1 idx=idy#新規性候補 else: ans=ans+1 idx=idx+1 print(ans)