fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val map = mutableMapOf<String, Int>()
    for(i in 0 until n){
        val s = readLine()!!.toString()
        if(!map.contains(s)){
            map[s] = 1
        }
    }
    println(map.keys.size)
}