def get_unique_count(a,n): s = [] cnt = 0 for i in a: if i not in s: cnt +=1 s.append(i) return cnt n = int(input()) a = list(map(int,input().split())) print(get_unique_count(a,n))