import java.util.*

val sc = Scanner(System.`in`)
val N = sc.nextInt()

fun main(args: Array<String>) {
    val d = mutableSetOf<Int>()
    repeat(N) {
        d.add(sc.nextInt())
    }
    println(d.count())
}
