function Main(input) {
  tmp = input.split("\n");
  i = parseInt(tmp[0], 10) -1;
  tmp.shift();
  trim = [];
  for (t=0; t<=i; t++) {
  	if(!trim.includes(tmp[t])){
      trim.push(tmp[t]);
    }
  }
  console.log(trim.length);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
