const main = (input) => {
  const args = input.split('\n')
  const num = parseInt(args[0], 10)
  const items = []

  // for (let i = 1; i < num; ++i) {
  //   if (!items.includes(args[i])) {
  //     items.push(args[i])
  //   }
  // }
  console.log(args.filter((_, i) => i > 0).filter((x, i, self) => self.indexOf(x) === i).length)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))