import java.util.*;
public class Main {
  	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String a[] = new String[N];
      int AC = 0;
      int WA = 0;
      int TLE = 0;
      int RE = 0;
      for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      }
      System.out.println("AC x " + AC);
      System.out.println("WA x " + WA);
      System.out.println("TLE x " + TLE);
      System.out.println("RE x " + RE);
    }
} import java.util.*; util.* java public class Main {
  	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String a[] = new String[N];
      int AC = 0;
      int WA = 0;
      int TLE = 0;
      int RE = 0;
      for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      }
      System.out.println("AC x " + AC);
      System.out.println("WA x " + WA);
      System.out.println("TLE x " + TLE);
      System.out.println("RE x " + RE);
    }
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String a[] = new String[N];
      int AC = 0;
      int WA = 0;
      int TLE = 0;
      int RE = 0;
      for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      }
      System.out.println("AC x " + AC);
      System.out.println("WA x " + WA);
      System.out.println("TLE x " + TLE);
      System.out.println("RE x " + RE);
    } main {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String a[] = new String[N];
      int AC = 0;
      int WA = 0;
      int TLE = 0;
      int RE = 0;
      for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      }
      System.out.println("AC x " + AC);
      System.out.println("WA x " + WA);
      System.out.println("TLE x " + TLE);
      System.out.println("RE x " + RE);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String a[] = new String[N]; a new String[N] N int AC = 0; AC 0 int WA = 0; WA 0 int TLE = 0; TLE 0 int RE = 0; RE 0 for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      } int count = 0; int count = 0; count 0 count < N count N count++ count++ count {
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      } {
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      } a[count] = sc.next() a[count] a count sc.next() sc.next sc if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        } a[count].equals("AC") a[count].equals a[count] a count "AC" {
          AC++;
        } AC++ AC if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        } a[count].equals("WA") a[count].equals a[count] a count "WA" {
          WA++;
        } WA++ WA if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        } a[count].equals("TLE") a[count].equals a[count] a count "TLE" {
          TLE++;
        } TLE++ TLE {
          RE++;
        } RE++ RE System.out.println("AC x " + AC) System.out.println System.out System System.out "AC x " + AC "AC x " AC System.out.println("WA x " + WA) System.out.println System.out System System.out "WA x " + WA "WA x " WA System.out.println("TLE x " + TLE) System.out.println System.out System System.out "TLE x " + TLE "TLE x " TLE System.out.println("RE x " + RE) System.out.println System.out System System.out "RE x " + RE "RE x " RE String[] args args public class Main {
  	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String a[] = new String[N];
      int AC = 0;
      int WA = 0;
      int TLE = 0;
      int RE = 0;
      for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      }
      System.out.println("AC x " + AC);
      System.out.println("WA x " + WA);
      System.out.println("TLE x " + TLE);
      System.out.println("RE x " + RE);
    }
} public class Main {
  	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String a[] = new String[N];
      int AC = 0;
      int WA = 0;
      int TLE = 0;
      int RE = 0;
      for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      }
      System.out.println("AC x " + AC);
      System.out.println("WA x " + WA);
      System.out.println("TLE x " + TLE);
      System.out.println("RE x " + RE);
    }
} Main
import java.util.*;
public class Main {
  	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String a[] = new String[N];
      int AC = 0;
      int WA = 0;
      int TLE = 0;
      int RE = 0;
      for (int count = 0; count < N; count++){
  	    a[count] = sc.next();
        if (a[count].equals("AC")){
          AC++;
        } else if (a[count].equals("WA")){
          WA++;
        } else if (a[count].equals("TLE")){
          TLE++;
        } else {
          RE++;
        }
      }
      System.out.println("AC x " + AC);
      System.out.println("WA x " + WA);
      System.out.println("TLE x " + TLE);
      System.out.println("RE x " + RE);
    }
}