function main (input) {
    var arr = [];
    const N = input.split('\n')[0];
    for (var i = 0; i < N; i++){
        arr.push(input.split('\n')[i+1]);
    }
    ans = arr.filter(function (x,i,self){
        return self.indexOf(x) === i;
    });
    console.log(ans.length);
}


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