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