const main = (inputs) => {
  var N = inputs[0] - 0;
  var obj = new Object();

  for (var i = 1; i <= N; i++) {
    var word = inputs[i];
    obj[word] = 1;
  }

  console.log(Object.keys(obj).length);
}
main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));