import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextInt()
  val d = List.fill(N)(sc.nextInt())

  println(calc(N, d))

  def calc(N: Int, d: List[Int]) : Int = {
    d.toSet.size
  }
}
