function main(input) {
  const input_array = input.split('\n');
  const mochis = input_array.slice(1);
  
  console.log(Array.from(new Set(mochis)).length);
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));