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