import java.util.*

fun main(args: Array<String>) {
  val input1 = readLine()!!.toInt()
  val tree = TreeSet<String>()
  for (i in 0 until input1) {
    val name = readLine()!!
    tree.add(name)
  }
  println(tree.size)
}
