function Main(input) {
    var input = input.split('\n');
    var a = input.slice(1,input.length);
    var Filter = a.filter((x, i, self) => self.indexOf(x) === i);
    var result = Filter.length;
    console.log(result);
    }
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));