function main(arg) {
  var N = parseInt(arg[0])
  var gacha = arg.slice(1)
  // 重複を削除したリスト
  var rslt = [];
  gacha.forEach(a => {
    if(!rslt.includes(a)) {
    	rslt.push(a)
    }
  })
  console.log(rslt.length)
}

main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split('\n'));
