function Main(input) {
	var str = input;
    str = str.trim().split('\n');
  	str.shift()
	var b = str.filter(function (x, i) {
            return  i === str.indexOf(x);
        });
 	console.log(b.length);
 }
 //*おまじない
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
