#!/usr/bin/env python3

# coding=utf-8



import sys



n = int(sys.stdin.readline().strip())

d = []

for _ in range(n):

    d.append(int(sys.stdin.readline().strip()))

print((len(set(d))))

#!/usr/bin/env python3

# coding=utf-8



import sys



d = list([int(x.strip()) for x in sys.stdin.readlines()])

print((len(set(d[1:]))))
#!/usr/bin/env python3
# coding=utf-8
import sys

n = int(sys.stdin.readline().strip())
d = []
for _ in range(n):
    d.append(int(sys.stdin.readline().strip()))
print((len(set(d))))

#!/usr/bin/env python3
# coding=utf-8
import sys

d = list([int(x.strip()) for x in sys.stdin.readlines()])
print((len(set(d[1:]))))

-n = int(sys.stdin.readline().strip()) -d = [] -for _ in range(n): -    d.append(int(sys.stdin.readline().strip())) -print((len(set(d)))) +d = list([int(x.strip()) for x in sys.stdin.readlines()]) +print((len(set(d[1:]))))