import scala.io.StdIn.readLine
import scala.io.StdIn.readInt
import java.util.Scanner
import java.util.ArrayList

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextInt()
  var s = Set[String]()
  for(i <- 1 to N){
    val str = sc.next()
    s += str
  }
  println(s.size)

  
}