def func():
    return

n = int(input())

d = dict()
for i in range(n):
    s = input()
    d[s] = True
# a, b = map(int, input().split())
# a = list(map(int, input().split()))
# a = input().split()

ans = len(d)

print(ans)