function Main(input) {
  "use strict";
  const lines = input.split("\n");
  const N = parseInt(lines[0], 10);
  const As = []
  for (var i = 1; i <= N; i++) {
    As.push(parseInt(lines[i]))
  }
  As.sort((a,b) => b - a)

  var count = 0;
  var prev = -1;
  for (var i = 0; i < N; i++) {
    if (As[i] !== prev) count++
    prev = As[i]
  }
  console.log(count)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
