function main(input){
	const args= input.split('\n');
  	const _=args[0];
  	const nums=args.slice(1,args.length);
  	const ans=Set(nums)
    console.log(ans.size())
}

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