"use strict"

function Main(input) {
  input = input.trim().split('\n').map(Number);
  const N = input[0];
  const D = input.slice(-N).sort((a, b) => b-a);

  let tmp = D[0];
  let ret = 1;
  for(let i=1; i<N; i++){
    if(tmp > D[i]){
      ret += 1;
      tmp = D[i];
    }
  }

  console.log(ret);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));