import scala.io.StdIn._
object Main {
  def main(args:Array[String]) {
    val N = readLine().toInt

    var m = Map[String, Int]()
    for(i <- 0 until N) {
      var str = readLine()
      m += str -> (m.getOrElse(str,0) + 1)
    }
    println(m.size)
  }
}
