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