fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val sList = (1..n).map { readLine()!! }.sorted()
    val map = mutableMapOf<String, Int>()
    sList.forEach { map[it] = map.getOrDefault(it, 0) + 1 }
    println(map.size)
}