a=int(input()) b=[int(i) for i in input().split()] c=set(b) print(len(c))