Imports System.Collections
Imports System.Collections.Generic
Imports System.Linq
Imports System.xml
Imports System.xml.Linq

Module Module1
	public sub main()

		dim N as string = Console.ReadLine()
    dim L as new List(of string) 
    for i = 0 to convert.toint32(N) - 1
    	L.add(Console.ReadLine())
  	next    
    
  dim cnt as integer = L.groupBy(function(x) x).count
    console.writeLine(cnt)
    
	end sub 
End Module