fun main() {
    val n = readLine()!!.toInt()
    val sList = mutableListOf<String>()
    for(i in 1 .. n){
        val s = readLine()!!
        sList.add(s)
    }
    println(sList.distinct().size)
}
