function Main(input) {
  input = input.split("\n");
  x = input.slice(1, input.length);
  x = x.filter((d,i,n)=>n.indexOf(d)==i);
  console.log(x.length);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));