import java.util.*

fun main(args: Array<String>) {
    val scan = Scanner(System.`in`)
    var a = scan.nextLine().toInt()
    var x = ArrayList<String>()
    for(i in 1..a)
    {
        var q = scan.nextLine()
        x.add(q)
    }
    var z = x.toSet()
    println(z.size)
}
