fun main(){
  abc085b()
}

fun abc085b(){
    val n = readLine()!!.toInt()
    var numArrayList: ArrayList<Int> = arrayListOf()
    for(i in 0 until n){
        numArrayList.add(readLine()!!.toInt())
    }
    print(numArrayList.toSet().size)
}