fun main(args: Array<String>) {
    abc085B(args)
    //abc088B(args)
    //abc105B(args)
    //abc087B(args)
    //abc081B(args)
    //abc095(args)
    //abc086(args)
    //tutorial(args)
}

fun abc085B(args: Array<String>) {
    val N = readLine()!!.toInt()
    val di = listOf<Int>().toMutableList()
    for (i in 0 until N) {
        di.add(readLine()!!.toInt())
    }

    println(di.toMutableSet().size)
}
