import java.util.HashSet

fun main(args: Array<String>) {
    val sc = java.util.Scanner(System.`in`)
    val N = sc.next().toInt()
    val s = HashSet<Int>()
    for (i in 0 until N){
        s.add(sc.next().toInt())
    }
    println(s.size)
}