"use strict";
function Main(input) {
  input = input.split("\n");
  const num = input.shift();
 
  let mochis = [];
  for (let i = 0; i < num; i++) {
    if (mochis.indexOf(parseInt(input[i])) === -1) {
      mochis.push(parseInt(input[i]));
    }
  }
  console.log(mochis.length);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf-8"));