#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];
  
  　int count = 0;
  for (int i = 0; i < str.size(); i++) {
    if (str.at(i) == 'AC') {
      count++;
    }
  cout <<"AC"<<" "<<"x" << count << <<endl;
  }
  
  int count = 0;
  for (int i = 0; i < str.size(); i++) {
    if (str.at(i) == 'WA') {
      count++;
    }
   cout <<"WA"<<" "<<"x" << count << <<endl;
  }

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

