function Main(input) {
	tmp = input.split("\n");
tmp.sort(function(a,b){
        if( a < b ) return -1;
        if( a > b ) return 1;
        return 0;
});
	
tmp.shift();


var c =0
var f =""
var n =""
var num =1
var len = tmp.length
for(let i = 1; i <= len ; i++) {
f= tmp[i-1]
n=tmp[i]
if(f!=n){  num++  }

}


 console.log(Number(num))
}

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