fun main() {
    val n = readInt()
    val items = mutableSetOf<String>()

    repeat(n) { items.add(readLn()) }

    println(items.size)
}

// Input Reader
private fun readLn() = readLine()!!

private fun readInt() = readLn().toInt()
