"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.res = void 0;
var fs = require("fs");
var inp = fs.readFileSync('/dev/stdin', 'utf8').trim().split('\n');
exports.res = function (inp) {
    var obj = {
        AC: 0,
        WA: 0,
        TLE: 0,
        RE: 0
    };
    inp.shift();
    for (var _i = 0, inp_1 = inp; _i < inp_1.length; _i++) {
        var element = inp_1[_i];
        if (element === 'AC') {
            obj.AC += 1;
        }
        else if (element === 'WA') {
            obj.WA += 1;
        }
        else if (element === 'TLE') {
            obj.TLE += 1;
        }
        else if (element === 'RE') {
            obj.RE += 1;
        }
    }
    console.log("AC \u00D7 " + obj.AC + "\nWA \u00D7 " + obj.WA + "\nTLE \u00D7 " + obj.TLE + "\nRE \u00D7 " + obj.RE);
};
exports.res(inp);
