function Main(input) {
	var str = input;
	const n = str.split('\n');
	var x  =Number(n[0]);
	var ans = 0;
	var a = [];
	for (var i = 0; i <x; i++){
			a[i] = n[i+1];
		}
	var b = a.filter(function (x, i, self) {
            return self.indexOf(x) === i;
        });
 	ans = b.length;
 	console.log(ans);
 }
 
//*おまじない
Main(require("fs").readFileSync("/dev/stdin", "utf8"));