#include<bits/stdc++.h>

using namespace std;


int main() {
	int t;
  	cin >> t;
  
  while(t--) {
   string s;
    
    cnt[s]++;
  }
  
  int x[] = {'AC', 'WA', 'TLE', 'RE'};
  
  for(int i = 0; i < 4; i++) {
   cout << x[i] << " x " << cnt[x[i]] << "\n";
  }
  
}