line = input() line2 = list(map(int, input().split())) l = list(line2) s = set(l) print(str(len(s)))