import scala.io.StdIn

object Main extends App {
  val counts = StdIn.readInt()
  val ls = scala.collection.mutable.ArrayBuffer.empty[Int]

  for (n <- 0 until counts) yield {
    ls += StdIn.readInt()
  }

  val ans = ls.toSet.size
  println(ans)

}
