import java.util.Scanner;
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[] count = new int[4];

    for(int i = 0; i < n; i++) {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    }

    System.out.println("AC x " + count[0]);
    System.out.println("WA x " + count[1]);
    System.out.println("TLE x " + count[2]);
    System.out.println("RE x " + count[3]);
  }
} import java.util.Scanner; Scanner java.util 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[] count = new int[4];

    for(int i = 0; i < n; i++) {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    }

    System.out.println("AC x " + count[0]);
    System.out.println("WA x " + count[1]);
    System.out.println("TLE x " + count[2]);
    System.out.println("RE x " + count[3]);
  }
} 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[] count = new int[4];

    for(int i = 0; i < n; i++) {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    }

    System.out.println("AC x " + count[0]);
    System.out.println("WA x " + count[1]);
    System.out.println("TLE x " + count[2]);
    System.out.println("RE x " + count[3]);
  } 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[] count = new int[4];

    for(int i = 0; i < n; i++) {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    }

    System.out.println("AC x " + count[0]);
    System.out.println("WA x " + count[1]);
    System.out.println("TLE x " + count[2]);
    System.out.println("RE x " + count[3]);
  } 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[] count = new int[4]; count new int[4] 4 for(int i = 0; i < n; i++) {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    } {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    } switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      } s[i] s i case "AC": "AC" case "AC": count[0]++ count[0] count 0 break; case "WA": "WA" case "WA": count[1]++ count[1] count 1 break; case "TLE": "TLE" case "TLE": count[2]++ count[2] count 2 break; case "RE": "RE" case "RE": count[3]++ count[3] count 3 break; System.out.println("AC x " + count[0]) System.out.println System.out System System.out "AC x " + count[0] "AC x " count[0] count 0 System.out.println("WA x " + count[1]) System.out.println System.out System System.out "WA x " + count[1] "WA x " count[1] count 1 System.out.println("TLE x " + count[2]) System.out.println System.out System System.out "TLE x " + count[2] "TLE x " count[2] count 2 System.out.println("RE x " + count[3]) System.out.println System.out System System.out "RE x " + count[3] "RE x " count[3] count 3 String[] args args
import java.util.Scanner;
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[] count = new int[4];

    for(int i = 0; i < n; i++) {
      switch(s[i]) {
        case "AC": count[0]++; break;
        case "WA": count[1]++; break;
        case "TLE": count[2]++; break;
        case "RE": count[3]++; break;
      }
    }

    System.out.println("AC x " + count[0]);
    System.out.println("WA x " + count[1]);
    System.out.println("TLE x " + count[2]);
    System.out.println("RE x " + count[3]);
  }
}
