import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val N = scanner.nextLong()
    val dList = arrayListOf<Long>()
    (1..N).forEach {
        dList.add(scanner.nextLong())
    }
    dList.sort()
    dList.reverse()
  //  println(dList)
    var cur = dList[0]
    var count = 1
    for (d in dList){
        if(cur>d){
            count++
            cur=d
        }
    }
    println(count)

}