function main(input) {
    const args = input.split('\n');
    const _ = args[0];
    const nums = args.slice(1, args.length).map(Number);
    const ans = new Set(nums)
    console.log(ans.size)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
