import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());
    int AC =0, WA=0, TLE =0,RE=0;
    String AC1="AC", WA1="WA", TLE1="TLE", RE1 ="RE";
    for(int i=0; i<n; i++){
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    }
    System.out.println(AC1+" x "+AC);
    System.out.println(WA1+" x "+WA);
    System.out.println(TLE1+" x "+TLE);
    System.out.println(RE1+" x "+RE);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());
    int AC =0, WA=0, TLE =0,RE=0;
    String AC1="AC", WA1="WA", TLE1="TLE", RE1 ="RE";
    for(int i=0; i<n; i++){
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    }
    System.out.println(AC1+" x "+AC);
    System.out.println(WA1+" x "+WA);
    System.out.println(TLE1+" x "+TLE);
    System.out.println(RE1+" x "+RE);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());
    int AC =0, WA=0, TLE =0,RE=0;
    String AC1="AC", WA1="WA", TLE1="TLE", RE1 ="RE";
    for(int i=0; i<n; i++){
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    }
    System.out.println(AC1+" x "+AC);
    System.out.println(WA1+" x "+WA);
    System.out.println(TLE1+" x "+TLE);
    System.out.println(RE1+" x "+RE);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());
    int AC =0, WA=0, TLE =0,RE=0;
    String AC1="AC", WA1="WA", TLE1="TLE", RE1 ="RE";
    for(int i=0; i<n; i++){
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    }
    System.out.println(AC1+" x "+AC);
    System.out.println(WA1+" x "+WA);
    System.out.println(TLE1+" x "+TLE);
    System.out.println(RE1+" x "+RE);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int AC =0 AC 0 WA=0 WA 0 TLE =0 TLE 0 RE=0; RE 0 String AC1="AC" AC1 "AC" WA1="WA" WA1 "WA" TLE1="TLE" TLE1 "TLE" RE1 ="RE"; RE1 "RE" for(int i=0; i<n; i++){
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    } {
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    } String curr = br.readLine(); curr br.readLine() br.readLine br if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++; AC1.equals(curr) AC1.equals AC1 curr AC++ AC if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++; WA1.equals(curr) WA1.equals WA1 curr WA++ WA if(TLE1.equals(curr)) TLE++;
      else RE++; TLE1.equals(curr) TLE1.equals TLE1 curr TLE++ TLE RE++ RE System.out.println(AC1+" x "+AC) System.out.println System.out System System.out AC1+" x "+AC AC1+" x "+AC AC1 " x " AC System.out.println(WA1+" x "+WA) System.out.println System.out System System.out WA1+" x "+WA WA1+" x "+WA WA1 " x " WA System.out.println(TLE1+" x "+TLE) System.out.println System.out System System.out TLE1+" x "+TLE TLE1+" x "+TLE TLE1 " x " TLE System.out.println(RE1+" x "+RE) System.out.println System.out System System.out RE1+" x "+RE RE1+" x "+RE RE1 " x " RE String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());
    int AC =0, WA=0, TLE =0,RE=0;
    String AC1="AC", WA1="WA", TLE1="TLE", RE1 ="RE";
    for(int i=0; i<n; i++){
      String curr = br.readLine();
      if(AC1.equals(curr)) AC++;
      else if(WA1.equals(curr)) WA++;
      else if(TLE1.equals(curr)) TLE++;
      else RE++;

    }
    System.out.println(AC1+" x "+AC);
    System.out.println(WA1+" x "+WA);
    System.out.println(TLE1+" x "+TLE);
    System.out.println(RE1+" x "+RE);
  }
}