function Main(input) {
	input = input.split("\n");
	tmp = Number(input[0])
  	let list = {}
  	for(let i = 1; i <= tmp; i++) {
      if(!list[input[i]]) list[input[i]] = 0
      else list[input[i]] += 1
    }
	console.log(Object.keys(list).length)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));