An _X -layered kagami mochi_ (X ≥ 1) is a pile of X round mochi (rice cake) stacked vertically where each mochi (except the bottom one) has a smaller diameter than that of the mochi directly below it. For example, if you stack three mochi with diameters of 10, 8 and 6 centimeters from bottom to top in this order, you have a 3-layered kagami mochi; if you put just one mochi, you have a 1-layered kagami mochi.  Lunlun the dachshund has N round mochi, and the diameter of the i-th mochi is d_i centimeters. When we make a kagami mochi using some or all of them, at most how many layers can our kagami mochi have?
n = int(input())
c = 0
list = []
for i in range(n):
    if not i in list:
        list.append(i)
        c += 1
print(c)
n = int(input())
bucket = [0]*(101)

d = [0]*(n)
for i in range(n):
    d[i] = int(input())

for i in range(n):
    bucket[d[i]] += 1

counter = 0

for num in bucket:
    if num > 0:
        counter+=1

print(counter)
