function main(input) {
  const args = input.split('\n');
  const N = Number(args[0])
  let count = 0
  const items = []
  for (let i = 1; i < N; i++) {
    if(!items.includes(args[i])) {
      items.push(args[i])
      count++
    }
  }

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