#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int N;
    cin >> N;
    vector<string> s(N);
    int ac=0;
    int wa=0;
    int tle=0;
    int re=0;

    for (int i=0; i<s.size(); i++){
        cin >> s[i];
        if (s[i]=='AC'){
            ac++;
        }
        if (s[i]=='WA'){
            wa++;
        }
        if (s[i]=='TLE'){
            tle++;
        }
        if (s[i]=='RE'){
            re++;
        }
    }

    cout << 'AC ×' << ac << endl;
    cout << 'WA ×' << wa << endl;
    cout << 'TLE ×' << tle < endl;
    cout << 'RE ×' << re <endl;
}