function main(arg) {
  var N = parseInt(arg[0])
  var gacha = arg.slice(1)
  var set = [...new Set(gacha)];
  console.log(set.length)
}
main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split('\n'));
