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

function Main(input){
    var args = input.split('\n');
    var N = args.shift();
    var d = args;
    var uniqueArray = d.filter( (value, index, self) => {return self.indexOf(value) === index;} );

    console.log(uniqueArray.length);
}
