'use strict'

function Main(input) {
  const inputList = input.split('\n');
  const n = inputList[0]
  const numberList = inputList.slice(1)

  const uniqueNumberList = Array.from(new Set(numberList))

  console.log(uniqueNumberList.length)
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));