q = int(input())

# 使用集合存储,集合会自动去重
str_only = set()
    
for _ in range(q):
    s = input().strip()
    str_only.add(s)

print(len(str_only))