const Main = () => {
    const line = require('fs').readFileSync('/dev/stdin', 'utf8');
    const N = parseInt(line, 10);
    const S = {};
    for (let i = 0; i < N; n++) {
        const input = require('fs').readFileSync('/dev/stdin', 'utf8');
        S[input] = true;
    }
    const count = Object.keys(S).length;
    console.log(count);
}

Main();