"use strict";
function Main(input) {
  input = input.split("\n");
  input.shift();

  let obj = {};
  for (let i in input) {
    obj[input[i]] = 1;
  }
  let result = 0;
  for (const n in obj) {
    result++;
  }
  console.log(result);
}

Main(require("fs").readFileSync("/dev/stdin", "utf-8"));
