def cut_md(s): l = [] if s not in l: l.append(s) return s N = int(input()) L = list(map(cut_md, input().split())) print(len(L))