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

#include <string>

#include <map>



using namespace std;



map<string, int>mymap;

int main() {

	int N;

	cin >> N;

	mymap["AC"] = 0;

	mymap["WA"] = 0;

	mymap["TLE"] = 0;

	mymap["RE"] = 0;

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

		string s;

		cin >> s;

		mymap[s]++;

	}

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

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

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

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

	return 0;

}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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



using namespace std;

int main() {

    int n;

    string value;

    int c[4] = {0,0,0,0};

    cin>> n;

    while(n){

        cin>> value;

        if(value == "AC")

            c[0]+= 1;

        else if(value == "WA")

            c[1]+= 1;

        else if(value == "TLE")

            c[2]+= 1;

        else

            c[3]+= 1;

        n--;

    }

    cout<< "AC x "<< c[0] <<"\nWA x "<< c[1] <<"\nTLE x "<< c[2] << "\nRE x "<< c[3];

    return 0;

}


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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include <bits/stdc++.h>

#include<sstream>

using namespace std;

const int N = 1e5 + 7, M = 1e7, OO = 0x3f3f3f3f;

#define endl '\n'

#define  ll long long

#define loop(i,n) for(int i = 0;i < int(n);++i)

#define rloop(i,n) for(int i = int(n);i >= 0;--i)

#define range(i,a,b) for(int i = int(a);i <= int(b);i++)

#define p(a) printf("%d ",a)

#define S(n) scanf("%d",&n)

int main () {

    map<string,int>mp;

    mp["AC"]=0;

    mp["WA"]=0;

    mp["TLE"]=0;

    mp["RE"]=0;

    int n;S(n);

    string s;

    loop(i,n) {

        cin >> s;

        mp[s]++;

    }

    printf("AC x %d\n",mp["AC"]);

    printf("WA x %d\n",mp["WA"]);

    printf("TLE x %d\n",mp["TLE"]);

    printf("RE x %d\n",mp["RE"]);



    return 0;

}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include<vector>

#include<map>

#include<set>

#include<string>

#include<algorithm>

#include<math.h>

#include<bits/stdc++.h>

#include<cmath>

#include<iomanip>

using namespace std;



const double PI  =3.141592653589793238463;

#define pb push_back

#define pf push_front

#define sz(v)  ((int)(v).size());

#define all(v) ((v).begin()),((v).end())

typedef unsigned long long ull;

typedef long long ll;



typedef vector<int> vi;

typedef pair<int,int> pi;

//2 7 3 4 9



void printVec(vi v1)

{

    for(int i=0; i<v1.size(); i++)

        cout<<v1[i]<<" ";

    cout<<endl;

}

int main()

{

    ios::sync_with_stdio(false);

    cout.tie(NULL);

    cin.tie(NULL);





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



long long t;cin>>t;

string s;

while(t--){

        cin>>s;

    if(s=="AC"){

        AC++;

    }else if(s=="WA"){

    WA++;

    }else if(s=="TLE"){

    TLE++;

    }else{

    RE++;}

}

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: 5.316415805055003x):
#include <stdio.h>



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include<bits/stdc++.h>

#define input ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);

#define ll long long

#define ull unsigned long long

#define ii pair<int,int>

#define dl endl

#define ft first

#define sc second

using namespace std;

int n, a[4];

string s;

int main()

{

	//freopen("", "r", stdin);

	//freopen("", "w", stdout);

	input;

	cin >> n;

	while (n--)

	{

		cin >> s;

		if (s == "AC")a[0]++;

		else if (s == "WA")a[1]++;

		else if (s == "TLE")a[2]++;

		else a[3]++;

	}

	cout << "AC x " << a[0]<<dl;

	cout << "WA x " << a[1] << dl;

	cout << "TLE x " << a[2] << dl;

	cout << "RE x " << a[3] << dl;

}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

using namespace std;



int main()

{

    int N;

    cin >> N;

    string S[100000];

    int A = 0, W = 0, T = 0, R = 0;

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

        cin >> S[i];

    }

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

        if (S[i] == "AC") {

            A ++;

        }

    }

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

        if (S[i] == "WA") {

            W ++;

        }

    }

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

        if (S[i] == "TLE") {

            T ++;

        }

    }

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

        if (S[i] == "RE") {

            R ++;

        }

    }

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

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

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

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

    return 0;

}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include <set>

#include <string>



using namespace std;



int main() {

    int n; cin >> n;

    string temp;

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

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

        cin >> temp;

        if(temp == "AC") ac++;

        else if(temp == "WA") wa++;

        else if(temp == "TLE") tle++;

        else if(temp == "RE") re++;

    }

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

        << "WA x " << wa << "\n"

        << "TLE x " << tle << "\n"

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

}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

using namespace std;

int main(){

    int c1=0,c2=0,c3=0,c4=0,x;

    string s;

    cin>>x;

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

        cin>>s;

        if(s=="AC"){

            c1++;

        }

        else if(s=="WA")

            c2++;

        else if (s=="TLE")

            c3++;

        else if(s=="RE")

            c4++;

        

    }



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

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

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

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







    return 0;



}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

using namespace std;

int main()

{

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

	string test;

	cin>>n;

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

	{

		cin>>test;

		if (test=="AC")

			AC++;

		else if (test=="TLE")

			TLE++;

		else if (test=="WA")

			WA++;

		else if (test=="RE")

			RE++;

	}

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

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

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

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

}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

typedef long long ll;

#define dbg(x) cout<<#x<<" = "<<x<<endl

#define dbg2(x,y) cout<<#x<<" = "<<x<<", "<<#y<<" = "<<y<<endl

#define dbg3(x,y,z) cout<<#x<<" = "<<x<<", "<<#y<<" = "<<y<<", "<<#z<<" = "<<z<<endl

#define dbg4(x,y,z,q) cout<<#x<<" = "<<x<<", "<<#y<<" = "<<y<<", "<<#z<<" = "<<z<<", "<<#q<<" = "<<q<<endl

#define dbg_array(x,sz) for (int i = 0; i < sz; ++i) cout << x[i] << " \n"[i==sz-1]

using namespace std;



const ll N = 100 + 9, M = 400 - 9, Max_ans = 1LL * (1e16);

int vis[N];



int main() {

	ios_base::sync_with_stdio(0), cin.tie(0);

#ifdef ECLIPSE

	freopen("input.in", "rt", stdin);

	//freopen("output.out", "wt", stdout);

#endif

	int n;

	cin >> n;

	string s;

	while (n--) {

		cin >> s;

		++vis[s[0] - 'A'];

	}

	printf("AC x %d\n", vis['A' - 'A']);

	printf("WA x %d\n", vis['W' - 'A']);

	printf("TLE x %d\n", vis['T' - 'A']);

	printf("RE x %d\n", vis['R' - 'A']);

	return 0;

}




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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include <map>

#include <string>

using namespace std;



int main()

{

	map<string, int> test;

	int count = 0;

	string verdict;

	cin >> count;

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

	{

		test["AC"] = 0;

		

		test["WA"] = 0;

		

		test["TLE"] = 0;



		test["RE"] = 0;

	}



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

	{

		cin >> verdict;

		

		if (verdict == "AC")

			test["AC"]++;

		else if (verdict == "WA")

			test["WA"]++;

		else if (verdict == "TLE")

			test["TLE"]++;

		else if (verdict == "RE")

			test["RE"]++;

	}

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

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

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

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

	return 0;

}


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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

using namespace std;

#define ll long long



bool cmp(const pair<string, int>&i, const pair<string, int>&j)

{

    return i.second > j.second;

}







int main() {

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

            int n ; cin >> n ;  string s ;

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

                  cin >> s;

                   if ( s == "AC")

                       AC++;

                   else if ( s == "TLE")

                       TLE++;

                   else if ( s == "WA")

                       WA++;

                   else

                       RE++;

             }



        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: 5.254612289254009x):
#include <stdio.h>



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include<string>

using namespace std;

int main(){

	int t, c0 = 0, c1 = 0, c2 = 0, c3  = 0;

	cin>>t;

	string test;

	while(t--){

		cin>>test;

		if(test == "AC")

		   c0++;

		else if(test == "WA")

		   c1++;

		else if(test == "TLE")

		   c2++;

		else if(test == "RE")

		   c3++;

	}

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

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

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

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

	

	

	return 0;

}

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include <string>



using namespace std;



int main()

{

    int N;

    cin>>N;



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

    string s;



    while(N--)

    {

        cin>>s;



        if(s.compare("AC")==0)

            AC++;



        if(s.compare("WA")==0)

            WA++;



        if(s.compare("TLE")==0)

            TLE++;



        if(s.compare( "RE")==0)

            RE++;





    }



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

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

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

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

}


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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include<cstdio>

#include<map>

using namespace std;

int main(void)

{

    ios::sync_with_stdio(false);

    map<string,int> mp;

    int n;

    char ch[10];

    while(cin>>n)

    {

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

        cin>>ch,mp[ch]++;

        printf("AC x %d\n",mp["AC"]);

        printf("WA x %d\n",mp["WA"]);

        printf("TLE x %d\n",mp["TLE"]);    

        printf("RE x %d\n",mp["RE"]);

    }

    return 0;

} 

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



int main(){

	int n;

	char str[5];

	scanf("%d", &n);

	

	int ctr0 = 0;

	int ctr1 = 0;

	int ctr2 = 0;

	int ctr3 = 0;

	

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

		scanf("%s", str);

		if(str[0] == 'A' && str[1] == 'C'){

			ctr0++;

		}

		else if(str[0] == 'W' && str[1] == 'A'){

			ctr1++;

		}

		else if(str[0] == 'T' && str[1] == 'L' && str[2] == 'E'){

			ctr2++;

		}

		else{

			ctr3++;

		}

	}

	

	printf("AC x %d\n", ctr0);

	printf("WA x %d\n", ctr1);

	printf("TLE x %d\n", ctr2);

	printf("RE x %d\n", ctr3);

	

	return 0;

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

#include<string>

#include<stdio.h>

#include<stdlib.h>

#include<set>

#include<map>

#include<vector>

#include<queue>

using namespace std;

#define mp(a,b) make_pair(a,b)

#define pb push_back



int main(){

    int n;

    cin>>n;

    int a[5];

    for (int i=1;i<=4;i++){

        a[i] = 0;

    }

    string sss;

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

        cin>>sss;

        if (sss == "AC"){

            a[1]++;

        }

        if (sss == "WA"){

            a[2]++;

        }

        if (sss == "TLE"){

            a[3]++;

        }

        if (sss == "RE"){

            a[4]++;

        }

    }

    cout<<"AC x "<<a[1]<<endl;

    cout<<"WA x "<<a[2]<<endl;

    cout<<"TLE x "<<a[3]<<endl;

    cout<<"RE x "<<a[4]<<endl;

}


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



int main(){

	long long int n;

	int ac=0;

	int wa=0;

	int tle=0;

	int re=0;

	char testing[4];

	scanf("%lld", &n);

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

		scanf("%s", &testing);

		switch (testing[0]){

		case 'A':

			ac++;

			break;

		case 'W':

			wa++;

			break;

		case 'T':

			tle++;

			break;

		case 'R':

			re++;

			break;

		}

	}

	printf("AC x %d\n", ac);

	printf("WA x %d\n", wa);

	printf("TLE x %d\n", tle);

	printf("RE x %d\n", re);

	return 0;

}
// Slower C++ solution:
// In the name of God



#include <bits/stdc++.h>



using namespace std;



int main() {

	ios_base::sync_with_stdio(false);

	cin.tie(0);



	map<string, int> mp;



	int n;

	cin >> n;

	while(n--) {

		string s;

		cin >> s;

		mp[s]++;

	}



	cout << "AC x " << mp["AC"] << "\n";

	cout << "WA x " << mp["WA"] << "\n";

	cout << "TLE x " << mp["TLE"] << "\n";

	cout << "RE x " << mp["RE"] << "\n";



	return 0;

}


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



int main(){

	long long int n;

	int ac=0;

	int wa=0;

	int tle=0;

	int re=0;

	char testing[4];

	scanf("%lld", &n);

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

		scanf("%s", &testing);

		switch (testing[0]){

		case 'A':

			ac++;

			break;

		case 'W':

			wa++;

			break;

		case 'T':

			tle++;

			break;

		case 'R':

			re++;

			break;

		}

	}

	printf("AC x %d\n", ac);

	printf("WA x %d\n", wa);

	printf("TLE x %d\n", tle);

	printf("RE x %d\n", re);

	return 0;

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

#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;

using namespace std;



typedef long long ll;

const int N = 2e5 + 10, OO = 0x3f3f3f3f, mod = 1e9 + 7;



#define PI acos(-1)

#define clr(arr, val) memset(arr, val, sizeof(arr))

#define loop(i, n) for (int i = 0; i < int(n); i++)

#define rloop(i, n) for (int i = int(n) - 1; i >= 0; i--)

#define xloop(i, a, b) for (int i = int(a); i <= int(b); i++)

#define ALL(v) ((v).begin()), ((v).end())

#define SZ(v) ((int)((v).size()))

//int dx[] = {1, 0, -1, 0};

//int dy[] = {0, 1, 0, -1}; //4 Direction

int dx[] = {1, 1, 0, -1, -1, -1, 0, 1};

int dy[] = {0, 1, 1, 1, 0, -1, -1, -1}; //8 direction

//int dx[]={2,1,-1,-2,-2,-1,1,2};int dy[]={1,2,2,1,-1,-2,-2,-1};//Knight Direction

//int dx[6]={2,1,-1,-2,-1,1};int dy[6]={0,1,1,0,-1,-1}; //Hexagonal Direction



int n;

int main()

{

  //ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);



  cin >> n;

  string s;

  map < string , int > cnt;

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

    cin >> s;

    cnt[s]++;

  }



  cout << "AC x " << cnt["AC"] << "\n";

  cout << "WA x " << cnt["WA"] << "\n";

  cout << "TLE x " << cnt["TLE"] << "\n";

  cout << "RE x " << cnt["RE"] << "\n";





  return 0;

}


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



int main(){

	long long int n;

	int ac=0;

	int wa=0;

	int tle=0;

	int re=0;

	char testing[4];

	scanf("%lld", &n);

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

		scanf("%s", &testing);

		switch (testing[0]){

		case 'A':

			ac++;

			break;

		case 'W':

			wa++;

			break;

		case 'T':

			tle++;

			break;

		case 'R':

			re++;

			break;

		}

	}

	printf("AC x %d\n", ac);

	printf("WA x %d\n", wa);

	printf("TLE x %d\n", tle);

	printf("RE x %d\n", re);

	return 0;

}