
function Main(input) {
    var N = parseInt(input[0], 10);
    var a = input.slice(1)
        .map(e => parseInt(e, 10))
        .sort((a, b) => {
            return b - a;
        });

    var sum = 1;

    for (var i = 1; i < N; i++) {
        if (a[i-1] > a[i]) {
            sum++;
        }
    }

    console.log(sum);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));