#include<iostream>
using namespace std;
 
int main()
{
	string str={"AC","WA","TLE","RE"};
	int n;
	cin>>n;
	int ac=0,wa=0,tle=0,re=0;
	string s;
	for(int i=0;i<n;i++)
	{
		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; 
}