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

int main(void)
{
  int i,j;
  int ac=0;
  int tle =0;
  int wa =0;
  int re =0;
  cin >> i;
  string d[i];
  for(j=0; j<i;j++){
   cin >> d[i];
  }
  for(int k=0;k<i;k++){
    if(d[k] == "AC"){ 
     ac++;
    }
    else if(d[k] == "WA"){
     wa++;
    }
    else if(d[k] == "TLE"){
     tle++;
    }
    else if(d[k] == "re"){
     re++;
    }
    cout << "AC × "<< ac <<endl;
    cout << "WA × "<< wa <<endl;
    cout << "TLE × "<< tle <<endl;
    cout << "RE × "<< re <<endl;
 