import scala.io.StdIn.readLine
import scala.io.StdIn.readInt

object Main extends App {
    val n = readLine.toInt;
    var s : Set[String] = Set()
    for(i <- 0 until n) {
        val x = readLine
        s+=x
    }
    print(s.size)
}