stablegradients/pie-gem5-pairs huggingface dataset:
// 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.216037777794962x):
#include <stdio.h>

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>

 

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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 <iostream>

#include <cstdio>

#include <algorithm>

#include <vector>

#include <cmath>

#include <cstring>

#define ll long long

using namespace std;



int n,num[10];

char s[10];



int main() {

    scanf("%d",&n);

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

        scanf("%s",s);

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

        if (s[0]=='W') ++num[1];

        if (s[0]=='T') ++num[2];

        if (s[0]=='R') ++num[3];

    }

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

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

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

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

    return 0;

}


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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>

using namespace std;

int main()

{

    int n;

    cin>>n;

    int a,b,c,d;

    a=b=c=d=0;

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

    {

        string s;

        cin>>s;

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

        if(s=="WA")b++;

        if(s=="TLE")c++;

        if(s=="RE")d++;

        

    }

    printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d\n",a,b,c,d);

}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>

#define ll long long

#define _ ios::sync_with_stdio(false);cout.tie(NULL);cin.tie(NULL);

using namespace std;



int main() { _

    int n; cin >> n;

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

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

        string s; cin >> s;

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

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

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

        if(s == "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.322493949212045x):
#include <stdio.h>

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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:
/*

*         ****FOX****

*/

#include <iostream>

#include <string>

#include <algorithm>

#include <stack>

#include <vector>

#include <map>

#include <set>

#include <sstream>

#include <iomanip>

#include <cmath>

#include <limits>

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

#include <utility>

#include <list>

#include <cstdio>

#include<forward_list>

#include<algorithm>

#include<string>

#define Omar_Hafez ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

#define pi 3.1415926536

#define ll long long

#define ull unsigned long long

#define lli long long int

using namespace std;

int main()

{

    Omar_Hafez

    int n,a=0,w=0,t=0,r=0; cin >> n;

    string x;

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

    {

        cin >> x; 

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

        else if (x[0] == 'W') w++;

        else if (x[0] == 'T')t++;

        else if (x[0] == 'R')r++;

    }

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

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

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

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

        return 0;

}


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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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 <iostream>

#include<bits/stdc++.h>

using namespace std;



int main()

{

      int n;

      cin>>n;

      int ac=0;

      int wa=0;

      int tle=0;

      int re=0;

      vector<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 if(s[i]=="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.2615196950248215x):
#include <stdio.h>

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>

using namespace std;



int main() {

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

  int n;

  cin >> n;

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

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

    string in;

    cin >> in;

    if (in == "AC") AC++;

    if (in == "TLE") TLE++;

    if (in == "WA") WA++; 

    if (in == "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.275615324538748x):
#include <stdio.h>

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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 <iostream>



using namespace std;



int main()

{

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

    cin >> n ;

    string arr[n] ;

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

        cin>> arr[i] ;

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

           c0=c0+1 ;

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

            c1=c1+1 ;

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

            c2=c2+1 ;

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

            c3=c3+1 ;



    }

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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>



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);

}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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 <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;

}

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

#include <string.h>



int main(){

	int n;

	scanf("%d", &n);

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

	

	char con[10];

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

		scanf("%s", con);

		if (strcmp(con, "WA") == 0) WA++;

		if (strcmp(con, "TLE") == 0) TLE++;

		if (strcmp(con, "RE") == 0) RE++;

		if (strcmp(con, "AC") == 0) AC++;

	}

	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;

}