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

    nums = Array.from(new Set(nums));
  	
  	console.log(parseInt(nums.length, 10));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));