function main(input) {
  input=input.trim();
  const N = parseInt(input.split(" ")[0], 10);
  var arrd=[]
  for(var i=0; i<N; i++){
    arrd.push(parseInt(input.split("\n")[1+i], 10))
  }

  var ans=0;
  for(var i=0; i<N; i++){
    var judge=0
    for(var j=0; j<i; j++){
      if(arrd[i]==arrd[j]){
        judge++
      }
    }
    if(judge==0){
      ans++
    }
  }
  console.log(ans);

}



main(require('fs').readFileSync('/dev/stdin', 'utf8'));
