#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
int main() {
  ll N;
  cin >> N;
  string S[N];
  int c[4] = {0};
  string C[4] = {"AC", "WA", "TLE", "RE"};
  for (int i = 0; i < N; i++) {
    cin >> S[i];
  }
  for (int i = 0; i < N; i++) {
    if (S[i] == C[0]) c[0]++;
    if (S[i] == C[1]) c[1]++;
    if (S[i] == C[2]) c[2]++;
    if (S[i] == C[3]) c[3]++;
  }
  for (int i = 0; i < 4; i++) {
    cout << C[i] << " × " << c[i] << endl;
  }
}
