s=set() d=0 n=int(input()) m = list(map(int, input().split())) for i in m : if i > 0: if i not in s: s.add(i) d+=1 else: d+=0 print(d)