function Main(input) {
    input = input.split("\n");
    
    input.splice(0, 1);
    
    let result = input.filter((x, i, self) => self.indexOf(x) === i);
    
    console.log(result.length)

}

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