'use strict'

const main = (INPUT) => {
  const input = INPUT.split('\n')
  const ary = [...new Set(input.slice(1))]
  console.log(ary.length)
}

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