function Main(input) {
    var n = input.split("\n")[0];
    var stringNums = []
    var nums = [];
    var count = 0;

    for(var i = 1; i <= n; i++) {
        stringNums.push(input.split("\n")[i]);
    }



    for(var i = 0; i < n; i++ ) {
        nums.push(Number(stringNums[i]));
    }

    console.log(nums);
    
    nums.sort(
        function(a,b){
          return b - a;
        }
      );
      

    for (var i = 0; i < n ; i++) {
        if (nums[i] > nums[i + 1] ){
            count ++;
        }
    }
    console.log(count + 1);
}
  Main(require("fs").readFileSync("/dev/stdin", "utf8"));