"use strict";

function main(input){
  const args = input.trim().split('\n');
  const n = parseInt(args[0],10);
  const mochi = args.slice(1).map(_=>parseInt(_,10));
  mochi.sort((a,b)=>a-b);
  
  const used = Array(100).fill(false);
  let cnt = 0;
  for(let i=0; i<n; i++){
	if(!used[mochi[i]-1]) cnt++;
    used[mochi[i]-1] = true;
  }
  
  console.log(cnt);
}

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