const main = (inputs) => {
  var numArray = inputs[1].split(" ");
  var numArrayCopy = numArray.slice(0, numArray.length);
  var count = 0;
  var set = new Set(numArrayCopy);
  var setToArr = Array.from(set);
  for (var i = 0; i < numArray.length; i++) {
    numArrayCopy[i] = 0;
    var count = 0;
    for (var j = 0; j < setToArr.length; j++) {
      count = count + numArrayCopy.filter(function (x) {
        return x === setToArr[j]
      }).length;
    }
    numArrayCopy = numArray.slice(0, numArray.length);
    console.log(count - 1);
  }
}
main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));