#include<iostream>
using namespace std;

int main(){
  int A, B, AC=0;
  int WA=0;
  int TLE=0;
  int RE =0;
  cin >> A;
  for(int i=0; i=A;i++){
    cin >> B;
    if(B=='AC') ++AC;
    if(B=='WA') ++WA;
      if(B=='TLE') ++TLE;
       if(B=='RE') ++RE;
  }
  cout << 'AC×'<<AC<< endl  << 'WA×'<<WA<< endl ;
  cout << "TLE×"<<TLE<< endl << 'RE×'<<RE<< endl;
  return 0;
}
