function main(input) {
  const arg = input.split('\n')
  const number = arg[0]
  let items = arg.slice(1, number + 1)
  
  const set = new Set(items)
  items = Array.from(set)

  console.log(items.length)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));