input() A = list(map(int, input().split())) newlist = [] twolist = [] for a in A: if a in newlist: twolist.append(a) continue else: if not a in twolist: newlist.append(a) continue print(len(newlist))