function Main(input) {
  tmp = input.split("\n");
  i = parseInt(tmp[0], 10);
  tmp.shift();
  trim = [];
  tmp.map(v => {
  	if(!trim.includes(v)){
      trim.push(v);
    }
    return trim;
  })
  console.log(trim.length);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
