"use strict";
exports.__esModule = true;
var reader = require("readline").createInterface({
    input: process.stdin,
    output: process.stdout
});
var lines = [];
reader.on("line", function (line) {
    lines.push(line);
});
reader.on("close", function () {
    var m = lines[1].split(" ").map(function (v) { return parseInt(v); });
    m.map(function (i, j) {
        var u = m.filter(function (k, l) { return j != l; });
        var r = 0;
        u.map(function (m) {
            var f = u.filter(function (d) { return d === m; });
            r += f.length - 1;
        });
        console.log(r / 2);
    });
});
