num=eval(input(""))

li=[]

while(num!=0):

  li.append(eval(input()))

  num-=1

a=set(li)

print((len(a)))
"""write your code in method solve"""

def solve():

   

    number=int(eval(input()))

    items=[]

    for i in range(number):

        item=eval(input())

        items.append(item)

    a=set(items)

    print((len(a)))



    return

solve()
num = eval(input(""))
li = []
while num != 0:
    li.append(eval(input()))
    num -= 1
a = set(li)
print((len(a)))

"""write your code in method solve"""


def solve():
    number = int(eval(input()))
    items = []
    for i in range(number):
        item = eval(input())
        items.append(item)
    a = set(items)
    print((len(a)))
    return


solve()

-num = eval(input("")) -li = [] -while num != 0: -    li.append(eval(input())) -    num -= 1 -a = set(li) -print((len(a))) +"""write your code in method solve""" + + +def solve(): +    number = int(eval(input())) +    items = [] +    for i in range(number): +        item = eval(input()) +        items.append(item) +    a = set(items) +    print((len(a))) +    return + + +solve()