fun main(args: Array<String>) {
    val line = readLine()!!.trim()
    val n = line.toInt()
    val itemSet: MutableSet<String> = mutableSetOf()

    for (i in (0..n-1)) {
        val item = readLine()!!.trim()
        itemSet.add(item)
    }

    println(itemSet.size)

}