var input = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
var num = parseInt(input[0])
var items = input.slice(1)
var ans = []
for (var i=0; i<num; i++) {
  if (!ans.includes(items[i])) ans.push(items[i])
}
console.log(ans.length)