fun main (args: Array<String>) {
	val num = readLine()
	val count : Int = num!!.toInt()
	
	var num2 : String?
	var count2 : Int
	
	var num3 : Int
	var result : Int = 1
	
	var list : MutableList<Int> = mutableListOf()
	
	for (i in 1..count) {
		num2 = readLine()
		count2 = num2!!.toInt()
		list.add(count2)
		
	}
	
	list.sort()
	list.reverse()
	
	num3 = list[0]
	
	for (i in 0..count - 1) {
		if (list[i] < num3) {
			result++
			num3 = list[i]
		}
		
	}
	
	println("${result}")
	
}