"use strict";

function main(input){
  const args= input.split('\n');
  const N= args[0];
  const d= args.slice(1, args.length-1);

  console.log(d.filter((n,i)=>d.indexOf(n)===i).length);

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