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

#include <string>



using namespace std;



int main()

{

    int arr_size, AC_count = 0, WA_count = 0, TLE_count = 0, RE_count = 0;

    string array[100000], in;

    cin >> arr_size;

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

        cin >> array[i];

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

    {

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

            AC_count++;

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

            WA_count++;

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

            TLE_count++;

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

            RE_count++;

    }

    cout << "AC x " << AC_count << endl << "WA x " << WA_count << endl << "TLE x " << TLE_count << endl << "RE x " << RE_count << endl;

}




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

using namespace std;



int main() {

   int N;

   cin >> N;

   map<string, int> ans;

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

       string s;

       cin >> s;

       ans[s]++;

   }

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

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

   }

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

#include <string>



using namespace std;



int main()

{

    int arr_size, AC_count = 0, WA_count = 0, TLE_count = 0, RE_count = 0;

    string array[100000], in;

    cin >> arr_size;

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

        cin >> array[i];

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

    {

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

            AC_count++;

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

            WA_count++;

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

            TLE_count++;

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

            RE_count++;

    }

    cout << "AC x " << AC_count << endl << "WA x " << WA_count << endl << "TLE x " << TLE_count << endl << "RE x " << RE_count << endl;

}




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

using namespace std;

int main() {

    int n;

    int a=0,w=0,t=0,r=0;

    cin >>n;

    string arr[n];

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

        cin>>arr[i];

        if(arr[i]=="AC"){a++;}

        else if (arr[i]=="WA"){w++;}

        else if (arr[i]=="TLE"){t++;}

        else if (arr[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;

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

#include <string>



using namespace std;



int main()

{

    int arr_size, AC_count = 0, WA_count = 0, TLE_count = 0, RE_count = 0;

    string array[100000], in;

    cin >> arr_size;

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

        cin >> array[i];

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

    {

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

            AC_count++;

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

            WA_count++;

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

            TLE_count++;

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

            RE_count++;

    }

    cout << "AC x " << AC_count << endl << "WA x " << WA_count << endl << "TLE x " << TLE_count << endl << "RE x " << RE_count << endl;

}




// Faster C++ solution for the same problem (measured speedup: 4.368987257082256x):


#include <iostream>

#include <string>

using namespace std;



int  main() {

	int x, q = 0, w = 0, e = 0, r = 0;

	string a = "AC", b = "WA", c = "RE", t = "TLE",m;

	cin >> x;

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

	{

		cin >> m;

		if (m==a)

		{

			q++;

		}

		else if (m == b) {

			w++;

		}

		else if (m == t) {

			e++;

		}

		else if (m == c) {

			r++;

	}

	}

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

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

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

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

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

#include <string>



using namespace std;



int main()

{

    int arr_size, AC_count = 0, WA_count = 0, TLE_count = 0, RE_count = 0;

    string array[100000], in;

    cin >> arr_size;

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

        cin >> array[i];

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

    {

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

            AC_count++;

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

            WA_count++;

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

            TLE_count++;

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

            RE_count++;

    }

    cout << "AC x " << AC_count << endl << "WA x " << WA_count << endl << "TLE x " << TLE_count << endl << "RE x " << RE_count << endl;

}




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

using namespace std;

int main()

{

	map<string, int> m;

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

	int n;

	cin>>n;

	while (n--)

	{

		string s;

		cin>>s;

		m[s]++;

	}

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

	{

		cout<<ar[i]<<" x "<<m[ar[i]]<<"\n";

	}

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

#include <string>



using namespace std;



int main()

{

    int arr_size, AC_count = 0, WA_count = 0, TLE_count = 0, RE_count = 0;

    string array[100000], in;

    cin >> arr_size;

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

        cin >> array[i];

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

    {

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

            AC_count++;

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

            WA_count++;

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

            TLE_count++;

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

            RE_count++;

    }

    cout << "AC x " << AC_count << endl << "WA x " << WA_count << endl << "TLE x " << TLE_count << endl << "RE x " << RE_count << endl;

}




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

typedef long long ll;

using namespace std;

int main()

{

	ios_base::sync_with_stdio(0);

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

	ll n,a=0,b=0,c=0,d=0;

	string s;

	cin >> n;

	while(n--){

		cin >> s;

		if(s=="AC"){

			a++;

		}

		else if(s=="TLE"){

			b++;

		}

		else if(s=="WA"){

			c++;

		}

		else if(s=="RE"){

			d++;

		}

	}

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

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

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

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

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

#include <string>



using namespace std;



int main()

{

    int arr_size, AC_count = 0, WA_count = 0, TLE_count = 0, RE_count = 0;

    string array[100000], in;

    cin >> arr_size;

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

        cin >> array[i];

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

    {

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

            AC_count++;

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

            WA_count++;

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

            TLE_count++;

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

            RE_count++;

    }

    cout << "AC x " << AC_count << endl << "WA x " << WA_count << endl << "TLE x " << TLE_count << endl << "RE x " << RE_count << endl;

}




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

using namespace std;



int N;

int arr[5];

string str;



int main() {

	

	ios_base::sync_with_stdio(false);

	cin >> N;

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

		cin >> str;

		if(str == "AC") arr[1]++;

		else if(str == "WA") arr[2]++;

		else if(str == "TLE") arr[3]++;

		else if(str == "RE") arr[4]++;

	}

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

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

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

	cout << "RE x " << arr[4] << "\n";

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

using namespace std;

int main()

{

    map<string,int> m;

    int n;

    cin>>n;

    string x;

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

    {

        cin>>x;

        m[x]++;

    }

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

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

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

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

    return 0;

}

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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

using namespace std;

int main()

{

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

 cin>>n;

 string s;

 while(n--)

 {

     cin>>s;

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

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

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

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

 }

 cout<<"AC x "<<a<<"\nWA x "<<w<<"\nTLE x "<<t<<"\nRE x "<<r;



    return 0;

}






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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

using namespace std;

int N,a,b,c,d;

string x;

int main() {

	cin>>N;

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

		cin>>x;

		if(x=="AC") {

			a++;

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

			b++;

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

			c++;

		} else if(x=="RE") {

			d++;

		}

	}

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

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

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

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

}


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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

using namespace std;



int main() {

     int n , arr[4] = {0} ;



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



     cin >> n ;



     while(n--){



          cin >> s ;

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



               if(s == arr_st[i])arr[i]++ ;

          }



     }

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



          cout << arr_st[j] << " x " << arr[j] << endl ;

     }

}


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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

#include <cmath>

#include <algorithm>

#include <cstdlib>

using namespace std;



int main() {

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

    scanf("%d",&x);

    string s;

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

        cin>>s;

        if(s=="AC")

            a++;

        else if (s=="WA")

        b++;

        else if(s=="TLE")

            c++;

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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

using namespace std;



int main()

{

    ios::sync_with_stdio(false);  cin.tie(0); 

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

    string s;

    cin >> n;

    while(n--)

    {

        cin >> s;

        if (s == "AC")

            ac++;

        else if (s == "TLE")

            tle++;

        else if (s == "WA")

            wa++;

        else

            re++;

    }

    cout << "AC x " <<ac <<"\nWA x "<<wa;

    cout << "\nTLE x "<<tle<<"\nRE x "<<re;

    return 0;

}


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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

#include <bits/stdc++.h>



using namespace std;



int main()

{

    int x;

    cin>>x;

    string arrS[x];

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

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

    {

        cin>>arrS[i];

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

            AC++;

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

            WA++;

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

            TLE++;

        else

            RE++;

    }



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

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

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

    cout<<"RE x "<<RE;









    return 0;

}


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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

#define pi 3.14159

using namespace std;

typedef long long LL;

const LL MOD = 1e9 + 7;

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

#define AC ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); cin.sync_with_stdio(0);

int main()

{

//have submited with my brother account becuase of forget to swap accounts

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

scanf("%d",&n);

while(n--){

    string s;

    cin>>s;

    if(s=="AC"){

        ac++;

    }

    else if(s=="WA"){

        wa++;

    }

    else if(s=="TLE"){

        tle++;

    }

    else if(s=="RE"){

        re++;

    }

}

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;

}


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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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



using namespace std;



int main()

{

    int n;

    cin>>n;

    string s;

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

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

    {

        cin>>s;

        if (s=="AC")

            c0++;

        else if (s=="WA")

            c1++;

        else if (s=="TLE")

            c2++;

        else if (s=="RE")

            c3++;





    }





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

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

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

    cout<<"RE x "<<c3;

    return 0;

}


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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

using namespace std;

int n, arr[4];

int main()

{

	cin>>n;

	string str;

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

		cin>>str;

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

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

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

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



	}



	cout<<"AC x "<<arr[0]<<endl;

	cout<<"WA x "<<arr[1]<<endl;

	cout<<"TLE x "<<arr[2]<<endl;

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



	return 0;

}


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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

}
// Slower C++ solution:


#include <bits/stdc++.h>

#include<vector>

using namespace std;

int main()

{

    int N;

    cin>>N;

    int count1=0,count2=0,count3=0,count4=0;

    string s;

    vector<string>v;

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

        cin>>s;

        v.push_back(s);

    }

    count1=count(v.begin(),v.end(),"AC");

    count2=count(v.begin(),v.end(),"WA");

    count3=count(v.begin(),v.end(),"TLE");

    count4=count(v.begin(),v.end(),"RE");

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

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

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

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







    return 0;

}

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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

using namespace std;

typedef long long ll;

#define INF 0x3f3f3f3f

const int N=102,M=10010,mod=998244353;

ll n,m,T,k,cnt,x,y,z,indx,t,ans,a[N];

string s;

int main()

{

	scanf("%lld",&n);

	while (n--)

	{

		cin>>s;

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

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

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

		if (s=="RE") a[4]++;

	}

	printf("AC x %lld\n",a[1]);

	printf("WA x %lld\n",a[2]);

	printf("TLE x %lld\n",a[3]);

	printf("RE x %lld\n",a[4]);

}

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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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



using namespace std;



int main() {

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

    int i;

    cin >> i;

    while (i--) {

        string s;

        cin >> s;

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

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

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

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

    }

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

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

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

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

    return 0;

}

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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

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

using namespace std;

int i,j,num[4],n;

char s[10];

int main()

{

	scanf("%d",&n);

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

	{

		scanf("%s",s);

		if (strcmp(s,"AC")==0) num[0]++;

		if (strcmp(s,"WA")==0) num[1]++;

		if (strcmp(s,"TLE")==0) num[2]++;

		if (strcmp(s,"RE")==0) num[3]++; 

	}

	printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d",num[0],num[1],num[2],num[3]);

}

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



int main() {



    int t, cntAC=0, cntWA=0, cntTLE=0, cntRE=0;

    char str[105];



    scanf("%d", &t);

    while(t--) {

        scanf("%s", str);

        if(str[0] == 'A') {

            cntAC++;

        } else if(str[0] == 'W') {

            cntWA++;

        } else if(str[0] == 'T') {

            cntTLE++;

        } else if(str[0] == 'R') {

            cntRE++;

        }

    }



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

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

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

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



    return 0;

}