Problem:

Set

数列a_1,a_2,..,a_Nが与えられます。

この数列に値は何種類ありますか。

入力

N
a_1 a_2...a_N

出力

数列の値の種類数を出力せよ。

制約

  
1 \leq N \leq 10^5 

  
1 \leq a_i \leq 10^9

入力例

6
8 6 9 1 2 1

出力例

5



Sample input:
6
8 6 9 1 2 1


Sample output:
5

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int,input().split()))
print(len(set(a)))

Submission status: Accepted

Solution code:
N = int(input())
a = set([int(x) for x in input().split()])

print(len(a))

Submission status: Accepted

Solution code:
N = int(input())
a = list(map(int,input().split()))
ans = len(set(a))

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
l = [int(i) for i in input().split()]
print(len(set(l)))

Submission status: Accepted

Solution code:
input();print(len(set(list(map(int,input().split())))))

Submission status: Accepted

Solution code:
n = int(input())
s = set()
l = list(map(int, input().split()))
for i in range(n):
    s.add(l[i])
print(len(s))

Submission status: Accepted

Solution code:
n=int(input())
print(len(set(map(int, input().split()))))

Submission status: Accepted

Solution code:
def num():
    return int(input())
def nums():
    return list(map(int,input().split()))
"""
N = num()
A = nums()
print(A.index(min(A))+1)
"""

N = num()
A =  set(nums())
print(len(A))