'use strict'

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

  const bucket = new Array(100)
  bucket.fill(0)

  for (let i=0; i<numberList.length; i++) {
    bucket[numberList[i]] = 1
  }

  for (let i=0; i<bucket.length; i++) {
    if (bucket[i] === 1) {
      count++
    }
  }

  console.log(count)
}

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