function main(input) {
    const [, ...d] = input.split('\n').map( n => parseInt(n, 10) );
    console.log( d.filter( (n, i) => d.indexOf(n) === i ).length );
}

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