#include <bits/stdc++.h> using namespace std; bool T=false; int main(){ long long N;cin>>N; vector<string> S(N); long long wa=0,ac=0,tle=0,re=0; for (int i = 0; i < N; i++) { cin>>S[i]; if(S[i]=="WA")wa++; if(S[i]=="AC")ac++; if(S[i]=="TLE")tle++; 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; }