'use strict';
let execute = input => {
  let mochies = input.split('\n').map(str => +str);
  mochies.shift();
  return String(new Set(mochies).size);
};

function Main(input) {
  console.log(execute(input));
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));