function Main(input) {
    input = input.split('\n');
    var n = parseInt(input[0], 10);
    var testNum = input.slice(1, n+1);
    var mochi = testNum.filter(function(num,i,test){
      return test.indexOf(num) === i;
    });
    console.log(mochi.length);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));