#include <bits/stdc++.h>
using namespace std;
int main() {
    int N, i, cnt;
    string S[N];
    int A, W, T, R;
    string AC, WA, TLE, RE;
    AC = AC;
    WA = WA;
    TLE = TLE;
    RE = RE;
    cnt = 0;
    while (cnt <= N)
    {

        cnt = cnt + 1;
        if (S[cnt]==AC){
            A = A + 1;
            else
            {
                if (S[cnt]==WA){
                    W = W + 1;
                    else
                    {
                        if (S[cnt] == TLE)
                        {
                            T = T + 1;
                            else
                            {
                                if(S[cnt]==RE){
                                    R = R + 1;
                                }
                           }

                        }
                    }

                }
            }
        }
    }
    cout << "AC x " << A << endl;
    cout << "WA x " << W << endl;
    cout << "TLE x " << T << endl;
    cout << "RE x " << R << endl;
}