function main(input) {
    const args = input.trim('').split('\n');
    const N = args[0];
    const Si = args.slice(1, N + 1);
    const set = new Set(Si);
    console.log(set.size);
}


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