import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    var gachaList = mutableListOf<String>()
    repeat(n) {
        gachaList.add(sc.next())
    }
    var gachaList_distinct: List<String> = gachaList.distinct()
    println(gachaList_distinct.size)
}