N = input() A = input().split() dic = {} for a in A: dic[a] = a not in dic print(sum(dic.values()))