#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ac = 0, wa = 0, tle = 0, re = 0;
  string bro;
  string acs = "AC", was = "WA", tles = "TLE", res = "RE";
  cin >> n;
  for (int i = 1; i <= n; i++) {
    if (bro == acs) {
      ac++;
    } else if (bro == was) {
      wa++;
    } else if (bro == tles) {
      tle++;
    } else if (bro == res) {
      re++;
    }
  }
  cout << "AC x " << ac << endl;
  cout << "WA x " << wa << endl;
  cout << "TLE x " << tle << endl;
  cout << "RE x " << re << endl;
  return 0;
}
