process.stdin.resume();
process.stdin.setEncoding('utf8');
 
var lines = [];
var reader = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
});
reader.on('line', (line) => {
    // ここで入力を処理する
    lines.push(line);
});
var sub_fn = (ary)=>{
  
}
reader.on('close', () => {
  lines.shift()
  var x = (lines.map((a)=>{return 1*a})).sort(function(a,b){
        if( a < b ) return -1;
        if( a > b ) return 1;
        return 0;
});
 //console.log(x)
  var cnt = 1;
  for(var i in x){
    if(i >0 && x[i-1]<x[i]){
    ++cnt}
  }

  console.log(cnt)
});
