function Main(input){
    input = input.split("\n");
    input.shift();
    var arr = {};
    for(var i=0;i<input.length;i++){
        if(!arr[input[i]]) arr[input[i]] = 1;
    }
    console.log(Object.keys(arr).length);
  }Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
