import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String s[] = new String[n];
    for(int i=0 ; i<n ; i++){
      s[i] = sc.next();
    }
    int countAC = 0;
    int countWA = 0;
    int countTLE = 0;
    int countRE = 0;

    for(int i=0 ; i<n ; i++){
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    }
    System.out.println("AC x " + countAC);
    System.out.println("WA x " + countWA);
    System.out.println("TLE x " + countTLE);
    System.out.println("RE x " + countRE);
  }
} 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 s[] = new String[n];
    for(int i=0 ; i<n ; i++){
      s[i] = sc.next();
    }
    int countAC = 0;
    int countWA = 0;
    int countTLE = 0;
    int countRE = 0;

    for(int i=0 ; i<n ; i++){
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    }
    System.out.println("AC x " + countAC);
    System.out.println("WA x " + countWA);
    System.out.println("TLE x " + countTLE);
    System.out.println("RE x " + countRE);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String s[] = new String[n];
    for(int i=0 ; i<n ; i++){
      s[i] = sc.next();
    }
    int countAC = 0;
    int countWA = 0;
    int countTLE = 0;
    int countRE = 0;

    for(int i=0 ; i<n ; i++){
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    }
    System.out.println("AC x " + countAC);
    System.out.println("WA x " + countWA);
    System.out.println("TLE x " + countTLE);
    System.out.println("RE x " + countRE);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String s[] = new String[n];
    for(int i=0 ; i<n ; i++){
      s[i] = sc.next();
    }
    int countAC = 0;
    int countWA = 0;
    int countTLE = 0;
    int countRE = 0;

    for(int i=0 ; i<n ; i++){
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    }
    System.out.println("AC x " + countAC);
    System.out.println("WA x " + countWA);
    System.out.println("TLE x " + countTLE);
    System.out.println("RE x " + countRE);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String s[] = new String[n]; s new String[n] n for(int i=0 ; i<n ; i++){
      s[i] = sc.next();
    } int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
      s[i] = sc.next();
    } {
      s[i] = sc.next();
    } s[i] = sc.next() s[i] s i sc.next() sc.next sc int countAC = 0; countAC 0 int countWA = 0; countWA 0 int countTLE = 0; countTLE 0 int countRE = 0; countRE 0 for(int i=0 ; i<n ; i++){
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    } int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    } {
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    } if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      } s[i].equals("AC") s[i].equals s[i] s i "AC" {
        countAC++;
      } countAC++ countAC if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      } s[i].equals("WA") s[i].equals s[i] s i "WA" {
        countWA++;
      } countWA++ countWA if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      } s[i].equals("TLE") s[i].equals s[i] s i "TLE" {
        countTLE++;
      } countTLE++ countTLE {
        countRE++;
      } countRE++ countRE System.out.println("AC x " + countAC) System.out.println System.out System System.out "AC x " + countAC "AC x " countAC System.out.println("WA x " + countWA) System.out.println System.out System System.out "WA x " + countWA "WA x " countWA System.out.println("TLE x " + countTLE) System.out.println System.out System System.out "TLE x " + countTLE "TLE x " countTLE System.out.println("RE x " + countRE) System.out.println System.out System System.out "RE x " + countRE "RE x " countRE String[] args args public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String s[] = new String[n];
    for(int i=0 ; i<n ; i++){
      s[i] = sc.next();
    }
    int countAC = 0;
    int countWA = 0;
    int countTLE = 0;
    int countRE = 0;

    for(int i=0 ; i<n ; i++){
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    }
    System.out.println("AC x " + countAC);
    System.out.println("WA x " + countWA);
    System.out.println("TLE x " + countTLE);
    System.out.println("RE x " + countRE);
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String s[] = new String[n];
    for(int i=0 ; i<n ; i++){
      s[i] = sc.next();
    }
    int countAC = 0;
    int countWA = 0;
    int countTLE = 0;
    int countRE = 0;

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

    for(int i=0 ; i<n ; i++){
      if(s[i].equals("AC")){
        countAC++;
      }else if(s[i].equals("WA")){
        countWA++;
      }else if(s[i].equals("TLE")){
        countTLE++;
      }else{
        countRE++;
      }
    }
    System.out.println("AC x " + countAC);
    System.out.println("WA x " + countWA);
    System.out.println("TLE x " + countTLE);
    System.out.println("RE x " + countRE);
  }
}
