fun main() {
    val n = readLine()?.toInt() ?: return
    val counter = hashMapOf<String, Int>()
    0.until(n).forEach {
        counter[readLine() ?: return] = 1
    }
    println(counter.keys.size.toString())
}
