a=int(input()) b=input().split() c=set(b) d=0 for i,j in enumerate(c): if j in b: del b[i] print(d)