# Enter your code here. Read input from STDIN. Print output to STDOUT
N = int(input())
country = set()
for i in range(N):
    country.add(raw_input())
print(len(country))        
#https://www.hackerrank.com/challenges/py-set-add
