fun main(args: Array<String>) {
    val count = readLine()?.toInt()?: 0
    var itemCount = 0
    val items = mutableListOf<String>()
    repeat(count) {
        readLine()?.let {
            items.add(it)
        }
    }
    println(items.distinct().count())
}