function main(argString) {
  	console.log(argString.split('\n').slice(1).map(v => Number(v))
                .filter((x, i, self) => x > 0 && self.indexOf(x) === i).length);
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));
