#include <bits/stdc++.h>
using namespace std;

int main() {
  
 int n;
 std::cin >> n;
 int a[n];
 for(int i=0; i<n; i++) std::cin >> a[i];
  
 str A= "AC";
 str W= "WA";
 str T= "TLE";
 str R= "RE";
  
 int count = 0;
 for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'A') {
  count++;
 }
 cout <<"AC"<<" "<<"x" << count << ""<<endl;
 }
  
 int count = 0;
 for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'W') {
  count++;
 }
 cout <<"WA"<<" "<<"x" << count << ""<<endl;
 }

 int count = 0;
 for (int i = 0; i < str.size(); i++) {
  if (str.at(i) == 'T') {
 count++;
 }
  cout <<"TLE"<<" "<<"x" << count <<"" <<endl;
 }
  int count = 0; 
  for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'R') {
 count++;
 }
 cout <<"RE"<<" "<<"x" << count << "" <<endl;
 }
}

