object Main extends App {
  var a = readInt
  var b = (List.tabulate(a)(i => readInt)).sorted
  var sum = 1L
  for(i <- 0 until a-1) {
    if(b(i)<b(i+1)){
      sum = sum + 1
    }
  }
  print(sum)
}