# No.182 新規性の虜 n = int(input()) a = [int(i) for i in input().split()] count = 0 for i in range(n): if a[i] not in a[0:i] + a[i + 1:]: count += 1 print(count)