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