function main(input) {
    const args = input.split('\n');
    let n = parseInt(args[0], 10);
    let s = new Set(args.slice(1, n+1));
    console.log(s.size)
}

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