'use strict';

function Main(INPUT) {
    let input = INPUT.split("\n").map(n => Number(n));
    const N = input[0];
    input.shift();
    console.log(input.filter((x, i, self) => self.indexOf(x) === i).length);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
