'use strict';

function Main(INPUT) {
    const input = INPUT.split("\n").map(n => Number(n)).slice(1);
    console.log(new Set(input).size);
}

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