stablegradients/pie-gem5-pairs huggingface dataset:
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.300643220054973x):
#include <bits/stdc++.h>



using namespace std;



void fast();



/*

*

* Watch out! Another Buggy Code From Muhammad_Mamdouh, Happy Coding;

*

*/



int main()

{

    fast();

    int n; cin >> n;

    int a = 0, b = 0, c = 0, d = 0;



    while (n--)

    {

        string s; cin >> s;



        if (s == "AC")

            ++a;

        if (s == "WA")

            ++b;

        if (s == "TLE")

            ++c;

        if (s == "RE")

            ++d;

    }



    cout << "AC" << " x " << a << '\n';

    cout << "WA" << " x " << b << '\n';

    cout << "TLE" << " x " << c << '\n';

    cout << "RE" << " x " << d << '\n';



    return 0;

}



void fast()

{

    ios_base::sync_with_stdio(0);

    cin.tie(0); cout.tie(0);

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.617151841797705x):
#include <iostream>

using namespace std;

int main() {

    int countA = 0,countW = 0, countT = 0, countR = 0;

    int n;

    cin>>n;

    string s [n];

    for (int i = 0; i < n; i++) {

        cin >> s[i];

        if (s[i] == "AC")

            countA++;

        else if (s[i] == "WA")

            countW++;

        else if (s[i] == "TLE")

            countT++;

        else if (s[i] == "RE")

            countR++;

    }

    cout<<"AC x "<<countA<<"\n";

    cout<<"WA x "<<countW<<"\n";

    cout<<"TLE x "<<countT<<"\n";

    cout<<"RE x "<<countR<<"\n";

    return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.355963631055454x):
#include <iostream>

using namespace std;

int main() {

    int countA = 0,countW = 0, countT = 0, countR = 0;

    int n;

    cin>>n;

    string s [n];

    for (int i = 0; i < n; i++) {

        cin >> s[i];

        if (s[i] == "AC")

            countA++;

        else if (s[i] == "WA")

            countW++;

        else if (s[i] == "TLE")

            countT++;

        else if (s[i] == "RE")

            countR++;

    }

    cout<<"AC x "<<countA<<"\n";

    cout<<"WA x "<<countW<<"\n";

    cout<<"TLE x "<<countT<<"\n";

    cout<<"RE x "<<countR<<"\n";

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.6131415309659984x):
#include <iostream>

using namespace std;

int main (){

    int n;cin>>n;string a[n];int cnt1=0,cnt2=0,cnt3=0,cnt4=0;

    for(int i=0;i<n;i++){

            cin>>a[i];

            if (a[i]=="AC")cnt1++;

            else if (a[i]=="WA")cnt2++;

            else if (a[i]=="TLE")cnt3++;

            else {cnt4++;}



    }

    cout<<"AC"<<" "<<"x"<<" "<<cnt1<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<cnt2<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<cnt3<<endl;

    cout<<"RE" <<" "<<"x"<<" "<<cnt4<<endl;

    return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.349288906321049x):
#include <iostream>

using namespace std;

int main (){

    int n;cin>>n;string a[n];int cnt1=0,cnt2=0,cnt3=0,cnt4=0;

    for(int i=0;i<n;i++){

            cin>>a[i];

            if (a[i]=="AC")cnt1++;

            else if (a[i]=="WA")cnt2++;

            else if (a[i]=="TLE")cnt3++;

            else {cnt4++;}



    }

    cout<<"AC"<<" "<<"x"<<" "<<cnt1<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<cnt2<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<cnt3<<endl;

    cout<<"RE" <<" "<<"x"<<" "<<cnt4<<endl;

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.6435307648233985x):
#include <iostream>



using namespace std;



int main()

{

    int n, ac = 0, wa = 0, tle = 0, re = 0;

    char c;



    cin >> n;

    for (size_t i = 0; i < n; i++)

    {

        cin >> c;

        switch (c)

        {

        case 'A':

            ++ac;

            cin.ignore(1);

            break;

        case 'W':

            ++wa;

            cin.ignore(1);

            break;

        case 'T':

            ++tle;

            cin.ignore(2);

            break;

        case 'R':

            ++re;

            cin.ignore(1);

            break;

        }

    }



    cout << "AC" << " x " << ac << '\n';

    cout << "WA" << " x " << wa << '\n';

    cout << "TLE" << " x " << tle << '\n';

    cout << "RE" << " x " << re << '\n';

    return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.399868469701501x):
#include <iostream>



using namespace std;



int main()

{

    int n, ac = 0, wa = 0, tle = 0, re = 0;

    char c;



    cin >> n;

    for (size_t i = 0; i < n; i++)

    {

        cin >> c;

        switch (c)

        {

        case 'A':

            ++ac;

            cin.ignore(1);

            break;

        case 'W':

            ++wa;

            cin.ignore(1);

            break;

        case 'T':

            ++tle;

            cin.ignore(2);

            break;

        case 'R':

            ++re;

            cin.ignore(1);

            break;

        }

    }



    cout << "AC" << " x " << ac << '\n';

    cout << "WA" << " x " << wa << '\n';

    cout << "TLE" << " x " << tle << '\n';

    cout << "RE" << " x " << re << '\n';

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.6155276200301683x):
#include <iostream>



using namespace std;



int main()

{

int n,A=0,B=0,C=0,D=0;

cin>>n;

string s;

for(int i=0;i<n;i++){

    cin>>s;

    if(s=="AC")A++;

    else if (s=="WA")B++;

    else if (s=="TLE")C++;

    else if (s=="RE")D++;

}

cout<<"AC"<<" x "<<A<<endl;

cout<<"WA"<<" x "<<B<<endl;

cout<<"TLE"<<" x "<<C<<endl;

cout<<"RE"<<" x "<<D<<endl;

    return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.353260291174609x):
#include <iostream>



using namespace std;



int main()

{

int n,A=0,B=0,C=0,D=0;

cin>>n;

string s;

for(int i=0;i<n;i++){

    cin>>s;

    if(s=="AC")A++;

    else if (s=="WA")B++;

    else if (s=="TLE")C++;

    else if (s=="RE")D++;

}

cout<<"AC"<<" x "<<A<<endl;

cout<<"WA"<<" x "<<B<<endl;

cout<<"TLE"<<" x "<<C<<endl;

cout<<"RE"<<" x "<<D<<endl;

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.6184730231674114x):
#include <iostream>

#include <string>

using namespace std;

int main() {



	long long n;

	string x;

	cin >> n;



	long long AC=0, WA=0, TLE=0, RE=0;



	for (int i = 0; i < n; i++)

	{

		cin >> x;

		

		if (x == "AC")

			AC++;

		else if (x == "WA")

			WA++;

		else if (x == "TLE")

			TLE++;

		else if (x == "RE")

			RE++;





	}



	cout << "AC x " << AC;

	cout << endl;

	cout << "WA x " << WA;

	cout << endl;

	cout << "TLE x " << TLE;

	cout << endl;

	cout << "RE x " << RE;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.35816259326489x):
#include <iostream>

#include <string>

using namespace std;

int main() {



	long long n;

	string x;

	cin >> n;



	long long AC=0, WA=0, TLE=0, RE=0;



	for (int i = 0; i < n; i++)

	{

		cin >> x;

		

		if (x == "AC")

			AC++;

		else if (x == "WA")

			WA++;

		else if (x == "TLE")

			TLE++;

		else if (x == "RE")

			RE++;





	}



	cout << "AC x " << AC;

	cout << endl;

	cout << "WA x " << WA;

	cout << endl;

	cout << "TLE x " << TLE;

	cout << endl;

	cout << "RE x " << RE;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.617151841797705x):
#include <iostream>



using namespace std;



int main()

{

    int n;

    cin>>n;

    string s[n];

    int a,w,t,r;

    a=w=t=r=0;

    for(int i=0;i<n;i++){

        cin>>s[i];

        if(s[i]=="AC")

           a++;

        else if(s[i]=="WA")

            w++;

        else if(s[i]=="TLE")

            t++;

        else if(s[i]=="RE")

            r++;

    }



    cout << "AC x " <<a<<"\n";

    cout << "WA x " <<w<<"\n";

    cout << "TLE x " <<t<<"\n";

    cout << "RE x " <<r<<"\n";

    return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.355963631055454x):
#include <iostream>



using namespace std;



int main()

{

    int n;

    cin>>n;

    string s[n];

    int a,w,t,r;

    a=w=t=r=0;

    for(int i=0;i<n;i++){

        cin>>s[i];

        if(s[i]=="AC")

           a++;

        else if(s[i]=="WA")

            w++;

        else if(s[i]=="TLE")

            t++;

        else if(s[i]=="RE")

            r++;

    }



    cout << "AC x " <<a<<"\n";

    cout << "WA x " <<w<<"\n";

    cout << "TLE x " <<t<<"\n";

    cout << "RE x " <<r<<"\n";

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.6058731848599406x):
#include <iostream>

#include <map>



using namespace std;



int main()

{

    int n;

    cin>>n;

    map<string,int> counter;



    for(int i=0 ; i<n ; i++)

    {

        string temp;

        cin>>temp;

        counter[temp]++;

    }



    cout<<"AC x "<<counter["AC"]<<endl;

    cout<<"WA x "<<counter["WA"]<<endl;

    cout<<"TLE x "<<counter["TLE"]<<endl;

    cout<<"RE x "<<counter["RE"]<<endl;



    return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.337191537421671x):
#include <iostream>

#include <map>



using namespace std;



int main()

{

    int n;

    cin>>n;

    map<string,int> counter;



    for(int i=0 ; i<n ; i++)

    {

        string temp;

        cin>>temp;

        counter[temp]++;

    }



    cout<<"AC x "<<counter["AC"]<<endl;

    cout<<"WA x "<<counter["WA"]<<endl;

    cout<<"TLE x "<<counter["TLE"]<<endl;

    cout<<"RE x "<<counter["RE"]<<endl;



    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.6145435246406374x):
#include <iostream>

#include<string>

#include<algorithm>

#include<vector>

using namespace std;

int main()

{

	int n;

	cin >> n;

	int a, s, d, f;

	a = s = d = f = 0;

	for (size_t i = 0; i < n; i++)

	{

		string x;

		cin >> x;

		if (x=="AC")

			a++;

		if (x == "WA")

			s++;

		if (x == "TLE")

			d++;

		if (x == "RE")

			f++;

	}

	cout << "AC x " << a << endl;

	cout << "WA x " << s << endl;



	cout << "TLE x " << d << endl;

	cout << "RE x " << f << endl;



	return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.351622371793003x):
#include <iostream>

#include<string>

#include<algorithm>

#include<vector>

using namespace std;

int main()

{

	int n;

	cin >> n;

	int a, s, d, f;

	a = s = d = f = 0;

	for (size_t i = 0; i < n; i++)

	{

		string x;

		cin >> x;

		if (x=="AC")

			a++;

		if (x == "WA")

			s++;

		if (x == "TLE")

			d++;

		if (x == "RE")

			f++;

	}

	cout << "AC x " << a << endl;

	cout << "WA x " << s << endl;



	cout << "TLE x " << d << endl;

	cout << "RE x " << f << endl;



	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.6155276200301683x):
#include <iostream>



using namespace std;



int main()

{

	int n, C1 = 0, C2 = 0, C3 = 0, C4 = 0;

	cin>>n;

	string o;

	for ( int i = 0; i < n ; i++ )

     {

          cin>>o;

          if ( o == "AC" )

               C1 += 1;

          else if ( o == "WA" )

               C2 += 1;

          else if ( o == "TLE" )

               C3 += 1;

          else if ( o == "RE" )

               C4 += 1;

     }

     cout<<"AC x "<<C1<<endl;

     cout<<"WA x "<<C2<<endl;

     cout<<"TLE x "<<C3<<endl;

     cout<<"RE x "<<C4<<endl;

    return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main()

{

    string s[100000];

    int i , n ;

    int AC=0 , WA=0 , TLE=0, RE=0;

    cin>>n;

    for(i=0;i<n; i++){

        cin>>s[i];}

    for(i=0;i<n;i++){

        if(s[i]=="AC"){ AC+=1;}

        else if (s[i]=="WA"){WA+=1;}

        else if (s[i]=="TLE"){TLE+=1;}

        else if (s[i]=="RE"){RE+=1;}

        }

    cout<<"AC"<<" "<<"x"<<" "<<AC<<endl;

    cout<<"WA"<<" "<<"x"<<" "<<WA<<endl;

    cout<<"TLE"<<" "<<"x"<<" "<<TLE<<endl;

    cout<<"RE"<<" "<<"x"<<" "<<RE<<endl;



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 4.353260291174609x):
#include <iostream>



using namespace std;



int main()

{

	int n, C1 = 0, C2 = 0, C3 = 0, C4 = 0;

	cin>>n;

	string o;

	for ( int i = 0; i < n ; i++ )

     {

          cin>>o;

          if ( o == "AC" )

               C1 += 1;

          else if ( o == "WA" )

               C2 += 1;

          else if ( o == "TLE" )

               C3 += 1;

          else if ( o == "RE" )

               C4 += 1;

     }

     cout<<"AC x "<<C1<<endl;

     cout<<"WA x "<<C2<<endl;

     cout<<"TLE x "<<C3<<endl;

     cout<<"RE x "<<C4<<endl;

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define oo (long long)1e18

#define ll long long

#define setdp memset(dp,-1,sizeof(dp))

const ll mod = 1e9+7;

void _IOS(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);cin.sync_with_stdio(0);}

#define PI 3.14159265359

int n,l,r,x;

    vector<int>b(200009),a(200009);

int main()

{

    map<string,int>mp;

    cin>>n;

    while(n--)

    {

        string s;

        cin>>s;

        mp[s]++;

    }

    for(auto s:{"AC","WA","TLE","RE"})

    {

            cout<<s<<" x "<<mp[s]<<endl;

    }

}


// Faster C++ solution for the same problem (measured speedup: 2.5891258086401425x):
#include <bits/stdc++.h>

using namespace std;



int a;



int main() {

	map<string, int> m;

	cin>>a;

	for(int k = 1; k<= a; k++){

		string s;

		cin >> s;

		m[s] ++;

	}

	cout << "AC x " << m["AC"]<< '\n';

	cout << "WA x " << m["WA"] << '\n';

	cout << "TLE x " << m["TLE"] << '\n';

	cout << "RE x " << m["RE"]<< '\n';

}