const stdin=require("fs").readFileSync("/dev/stdin", "utf8");
const argv=stdin.split("\n");
//const total=Number(argv[0]);
const mochies=argv.slice(1);

//重複しないもちぃのみを抜き出す
const uniqMochies=mochies.filter((a,idx,self)=>self.indexOf(a)==idx);

console.log(uniqMochies.length);
