N = eval(input(""))
number = 0
inputs = []
while True:
    if len(inputs) != N:
        inp = str(input(""))
        inputs.append(str(inp))
    else:
        break
inputs_new = set(inputs)
for i in inputs_new:
    number += 1
print(number)