object Main extends App {
	val N = scala.io.StdIn.readInt
	var temp = List[Long]()

	for(i<-0 until N){
		val A = scala.io.StdIn.readLong
		temp = A::temp
	}

	temp = sort(temp)

	var t = temp(0)
	var count = 1

	for(i <- temp){
		if(t != i) count = count + 1; t = i;
	}

	println(count)

	def sort(x: List[Long]): List[Long] = {
		x match {
			case Nil => List[Long]()
			case r::Nil => List(r)
			case r::rest =>{
				val temp = rest.toArray
				var right = List(r)
				var left = List[Long]()

				for(i<-0 until rest.size){
					if(temp(i) > r) right = temp(i)::right
					else left = temp(i)::left
				}

				sort(left):::sort(right)
			}
		}
	}

}