function Main(input) {
    input = input.split("\n");
    
    input.splice(0, 1);
    
    for(let i=0; i<input.length;i++){
        for(let j=1;j<input.length-i;j++){
            if(input[i]==input[i+j]){
                input[i+j]="0";
            }
        }
    }
    const result = input.filter(word => word!=0);



    console.log(result.length)

}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));