stablegradients/pie-gem5-pairs huggingface dataset:
// Slower C++ solution:
#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;

}


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

#include <string.h>



int main () {

	int n;

	int cmp;

	scanf("%d", &n);

	char str[255];

	int ctr[10] = {0};

	

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

		scanf("%s", &str);

		if (cmp = strcmp(str, "AC") == 0) {

			++ctr[1];

		}

		if (cmp = strcmp(str, "WA") == 0) {

			++ctr[2];

		}

		if (cmp = strcmp(str, "TLE") == 0) {

			++ctr[3];

		}

		if (cmp = strcmp(str, "RE") == 0) {

			++ctr[4];

		}

	}

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

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

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

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

	return 0;

}
// Slower C++ solution:
#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;

}

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

#include <string.h>



int main () {

	int n;

	int cmp;

	scanf("%d", &n);

	char str[255];

	int ctr[10] = {0};

	

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

		scanf("%s", &str);

		if (cmp = strcmp(str, "AC") == 0) {

			++ctr[1];

		}

		if (cmp = strcmp(str, "WA") == 0) {

			++ctr[2];

		}

		if (cmp = strcmp(str, "TLE") == 0) {

			++ctr[3];

		}

		if (cmp = strcmp(str, "RE") == 0) {

			++ctr[4];

		}

	}

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

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

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

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

	return 0;

}
// Slower C++ solution:
#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;

}


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

#include <string.h>



int main () {

	int n;

	int cmp;

	scanf("%d", &n);

	char str[255];

	int ctr[10] = {0};

	

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

		scanf("%s", &str);

		if (cmp = strcmp(str, "AC") == 0) {

			++ctr[1];

		}

		if (cmp = strcmp(str, "WA") == 0) {

			++ctr[2];

		}

		if (cmp = strcmp(str, "TLE") == 0) {

			++ctr[3];

		}

		if (cmp = strcmp(str, "RE") == 0) {

			++ctr[4];

		}

	}

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

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

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

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

	return 0;

}
// Slower C++ solution:
#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';

}

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

#include <string.h>



int main () {

	int n;

	int cmp;

	scanf("%d", &n);

	char str[255];

	int ctr[10] = {0};

	

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

		scanf("%s", &str);

		if (cmp = strcmp(str, "AC") == 0) {

			++ctr[1];

		}

		if (cmp = strcmp(str, "WA") == 0) {

			++ctr[2];

		}

		if (cmp = strcmp(str, "TLE") == 0) {

			++ctr[3];

		}

		if (cmp = strcmp(str, "RE") == 0) {

			++ctr[4];

		}

	}

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

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

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

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

	return 0;

}
// Slower C++ solution:




#include <bits/stdc++.h>

#include<unordered_map>

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

using namespace std;

typedef long long ll;

typedef vector<int> vi;

typedef pair<int, int> pii;

typedef vector<pii> vpii;



int main() {

    //  ios_base::sync_with_stdio(0); 

      //cin.tie(0); 

      //cout.tie(0);

      //freopen("input.txt", "r", stdin);

      //freopen("output.txt", "w", stdout);

    int T = 1;

    vector<string> v = { "AC", "WA", "TLE", "RE" };

    char s1[5];

    int freq[5] = {};

   



      scanf("%d", &T);

    while (T--) {



        scanf("%s", &s1);

       string s(s1);

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

       {

           if (s == v[i])

               freq[i]++;

       }

      

    }

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

    {

        printf("%s x %d\n", v[i].c_str(), freq[i]);

    }





    return 0;

}


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

#include <string.h>



int main () {

	int n;

	int cmp;

	scanf("%d", &n);

	char str[255];

	int ctr[10] = {0};

	

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

		scanf("%s", &str);

		if (cmp = strcmp(str, "AC") == 0) {

			++ctr[1];

		}

		if (cmp = strcmp(str, "WA") == 0) {

			++ctr[2];

		}

		if (cmp = strcmp(str, "TLE") == 0) {

			++ctr[3];

		}

		if (cmp = strcmp(str, "RE") == 0) {

			++ctr[4];

		}

	}

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

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

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

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

	return 0;

}
// Slower C++ solution:
///ataur

#include<bits/stdc++.h>



using namespace std;



int main()

{

    int n;

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

    cin>>n;

    while(n--)

    {



        char s[10];

        cin>>s;

        if(s[0]=='A') a++;

        else if(s[0]=='W') b++;

        else if(s[0]=='T') c++;

        else if(s[0]=='R') d++;



    }

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

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

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

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

    return 0;

}






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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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

using namespace std;



map<string , long long>m;



int main(){

 long long n,a,b,x;

 set<string>lst;

 string s;

 cin >>n;

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

 cin>>s;

 m[s]++;

 }

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

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

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

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

}


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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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



using namespace std;



int main()

{

    int n;

    cin>>n;

    int cnt1=0,cnt2=0,cnt3=0,cnt4=0;

    while(n--)

    {

        string s;

        cin>>s;

        if(s=="AC")

            cnt1++;

        else if(s=="WA")

            cnt2++;

        else if(s=="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;

}


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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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



using namespace std;



int main()

{

 int n;

 cin>>n;

 string s;

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

 while(n--) {

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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



using namespace std;



int main() {

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

   cin>>n;

   string s[n];

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

        cin >> s[i];

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

            AC++;

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

            WA++;

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

            TLE++;

        else

            RE++;

    }

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

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

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

    cout<<"RE x "<<RE;

}






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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

}
// Slower C++ solution:
#pragma GCC optimize ("O3")

#include<bits/stdc++.h>

using namespace std;



/// Info.

///****************************************************************************************************************************************///

/// author                : BAHAA El-DEEN OSAMA .

/// Problem name          : A - Choose Two Numbers

/// Method                : brute force

/// Online judge          : vjudge(Contest)

/// Date                  : 8/6/2020

///****************************************************************************************************************************************///



string str;

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



int main()

{



cin>>n;

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

{

    cin>>str;

    if(str == "AC"){++AC;}

    else if(str == "WA"){++WA;}

    else if(str == "TLE"){++TLE;}

    else if (str == "RE"){++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.214908678005411x):
#include <stdio.h>

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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

#include<map>

#include<fstream>

#include<vector>

using namespace std;

int main()

{

	

	int t;

	string inputs;

	

	cin >> t;



	map<string, int> freq;

	freq.emplace("AC", 0);

	freq.emplace("WA", 0);

	freq.emplace("TLE", 0);

	freq.emplace("RE", 0);



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

		cin >> inputs;

		if (freq.end() != freq.find(inputs)) {

			freq.find(inputs)->second++;

		}



	}

		

	

		cout <<freq.find("AC")->first << " x " << freq.find("AC")->second<< endl;

		cout << freq.find("WA")->first << " x " << freq.find("WA")->second << endl;

		cout << freq.find("TLE")->first << " x " << freq.find("TLE")->second << endl;

		cout << freq.find("RE")->first << " x " << freq.find("RE")->second << endl;



}


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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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

 

using namespace std;

 

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

#define forp(a,b,c) for(int (a)=(b); (a)<(c); (a++))

#define form(a,b,c) for(int (a)=(b); (a)>(c); (a--))

#define fori(a,b) for(auto (a):(b))

#define pb(a) push_back(a)

#define INF ((unsigned) ~0)

#define endl "\n"

typedef long long ll;

typedef vector<int> vi;

typedef vector<ll> vl;

typedef pair<int,int> pii;

ll gcd(ll a, ll b) {return b ? gcd(b, a%b) : a;}

 

int main()

{

    fastIO

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

    string s;

    cin>>n;

    while(n--)

    {

        cin>>s;

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

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

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

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

    }

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

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

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

    cout<<"RE x "<<re;

}

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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

#include<math.h>

#include<vector>

#include<string>

#include<algorithm>



using namespace std;



#define vi vector<int>

#define vvi vector<vi>

#define rpt(i,x) for (int i = 0; i < x; i++)

#define fti(i,f,t) for (int i = f; i <= t; i++)

#define fte(i,f,t) for (int i = f; i < t; i++)

#define rptws(i,x,s) for (int i = 0; i < x; i += s)

#define llrpt(i,x) for (long long i = 0; i < x; i++)

#define llfti(i,f,t) for (long long i = f; i <= t; i++)

#define llfte(i,f,t) for (long long i = f; i < t; i++)





int main () {

    int n;

    cin>>n;

    int arr[4] = {0};



    rpt(i, n) {

        string s;

        cin>>s;



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

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

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

        else if (s == "RE") arr[3]++;

    }



    cout<<"AC x "<<arr[0]<<"\n";

    cout<<"WA x "<<arr[1]<<"\n";

    cout<<"TLE x "<<arr[2]<<"\n";

    cout<<"RE x "<<arr[3];

    return 0;

}

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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

using namespace std;





int main()

{

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

    cin>>n;

    string s;

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

    {

        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;

}

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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



using namespace std;



int n,test_count[4];

char test[5]={"AWTR"},s[4];



int main(){

    cin>>n;

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

        cin>>s;

        for (int j=0; j<5; j++)

        {

            if (s[0]==test[j])

                test_count[j]++;

        }

    }

    cout<<"AC x "<<test_count[0]<<'\n';

    cout<<"WA x "<<test_count[1]<<'\n';

    cout<<"TLE x "<<test_count[2]<<'\n';

    cout<<"RE x "<<test_count[3]<<'\n';

    return 0;

}

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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

#include <string>

using namespace std;



int counter[4];

string answer[4] = { "AC" , "WA" , "TLE" , "RE" };



int main()

{

	string s;

	

	int n = 0; 

	cin>>n;

	

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

	   cin>>s;

	   if(s.compare(answer[0]) == 0)

	       counter[0]++;

	   else if(s.compare(answer[1]) == 0)

	       counter[1]++;

	   else if(s.compare(answer[2]) == 0)

	       counter[2]++;

	   else

	        counter[3]++;

	}

	

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

		cout<<answer[i]<<" x "<<counter[i]<<endl;

	}

	return 0;

}

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

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

using namespace std;

#define INF 0x3f3f3f3f

#define maxn 100005

#define ll long long



void DBG() {

    cerr << "]\n";

}

template <class H, class... T> void DBG(H h, T... t) {

    cerr << h;

    if (sizeof...(t)) {

        cerr << ", ";

    }

    DBG(t...);

}

#define _DEBUG

#ifdef _DEBUG

#define dbg(...) cerr << "LINE(" << __LINE__ << ") -> [" << #__VA_ARGS__ << "]: [", DBG(__VA_ARGS__)

#else

#define dbg(...) 0

#endif



int tt, n, k;

map<string, int> mp;



int main() {



    cin >> tt;

    while (tt--) {

        string s;

        cin >> s;

        mp[s]++;

    }

    printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d", mp["AC"], mp["WA"], mp["TLE"], mp["RE"]);

    return 0;

}

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

#include <string.h>



int main(){

	int lenght;

	char word[255];

	int chr[5] = {0};

	scanf("%d", &lenght);

	

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

		scanf("%s", &word);

		

		if(strcmp(word, "AC") == 0){

			++chr[0];

		}else if (strcmp(word, "WA")==0){

			++chr[1];

		}else if (strcmp(word, "TLE")==0){

			++chr[2];

		}else if (strcmp(word, "RE")==0){

			++chr[3];

		}

	}

	

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

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

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

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

	

	return 0;

}