function main(input){
  input = input.split('\n');
  const N = Number(input[0]);
  const arr = input.slice(1, N+1);



  console.log(new Set(arr).size)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim());
