"use strict";
function main(arg) {
    //    console.log(arg.trim().split("\n"));
    let ary = arg.trim().split("\n");
    let N = ary.shift();
    let S = ary.filter((x,i,self)=>self.indexOf(x)===i);

    console.log(S.length);

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