#include <iostream>
#include <cmath>
#include <cstdlib>
#include <string>
using namespace std;
int ac, wa, tle, re;
int main()
{
	int t;
	while(t--)
{
	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;
}