function Main(input) {
    input = input.split('\n');
    var n = parseInt(input[0], 10);
    var testNum = input.slice(1, n+1);
    var mochi = new Set(testNum);
    console.log('%d',mochi.size);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));