import sys

n = int(input())
dic = {}
for i in range(n):
    dic[str(input().split())] = i

print(len(dic))