#include <iostream>
#include <string>
using namespace std;
int main(){
char s[100];
int i,N,first=0 ,sec=0 
,third=0, fourth=0;
cin>>N;
for(i=0; i<N ; i++){
cin>>s[i]; 
switch(s[i]){
case ‘A’: first++; break;
case ‘T’:  sec++; break;
case ‘W’: third++; break;
case ‘R’ : fourth++; break;
}}
for (i=0; i<N ; i++){
switch(s[i]){

case ‘A’: cout<< “AC x “<< first<<endl   ; break;
case ‘T’: cout<< “TLE x “<< sec<<endl   ; break;
case ‘W’: cout<< “WA x “<< third<<endl   ; break;
case ‘R’: cout<< “RE x “<< fourth<<endl   ; break;
}}


return 0;}