function Main(input) {
    input = input.split("\n");
    
    input.splice(0, 1);
    
    input = new Set(input);
    input = Array.from(input);
    console.log(input.length);
}

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