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.length)
}

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