import java.util.Scanner

import scala.collection.mutable.ArrayBuffer

object Main extends App {

  val sc = new Scanner(System.in)
  val n = sc.nextInt()
  val d = ArrayBuffer.empty[Int]

  (1 to n).foreach(_ => d += sc.nextInt())

  println(d.distinct.length)

}
