n=int(input())
l=[input() for i in range(n)]
d={}
for i,j in enumerate(l):
    d[j]=i
print(len(d))