// 今回でいえば、A問題の方が実装難しいです･･･。
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
      // 準備
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String s;

      int[] ans = new int[4];

      for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      }

      System.out.println("AC x " + ans[0]);
      System.out.println("WA x " + ans[1]);
      System.out.println("TLE x " + ans[2]);
      System.out.println("RE x " + ans[3]);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
      // 準備
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String s;

      int[] ans = new int[4];

      for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      }

      System.out.println("AC x " + ans[0]);
      System.out.println("WA x " + ans[1]);
      System.out.println("TLE x " + ans[2]);
      System.out.println("RE x " + ans[3]);
    }
} Main public static void main(String[] args) {
      // 準備
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String s;

      int[] ans = new int[4];

      for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      }

      System.out.println("AC x " + ans[0]);
      System.out.println("WA x " + ans[1]);
      System.out.println("TLE x " + ans[2]);
      System.out.println("RE x " + ans[3]);
    } main {
      // 準備
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String s;

      int[] ans = new int[4];

      for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      }

      System.out.println("AC x " + ans[0]);
      System.out.println("WA x " + ans[1]);
      System.out.println("TLE x " + ans[2]);
      System.out.println("RE x " + ans[3]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String s; s int[] ans = new int[4]; ans new int[4] 4 for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      } int i=0; int i=0; i 0 i<n i n ++i ++i i {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      } {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      } s = sc.next() s sc.next() sc.next sc if("AC".equals(s))
          ans[0]++; "AC".equals(s) "AC".equals "AC" s ans[0]++ ans[0] ans 0 if("WA".equals(s))
          ans[1]++; "WA".equals(s) "WA".equals "WA" s ans[1]++ ans[1] ans 1 if("TLE".equals(s))
          ans[2]++; "TLE".equals(s) "TLE".equals "TLE" s ans[2]++ ans[2] ans 2 if("RE".equals(s))
          ans[3]++; "RE".equals(s) "RE".equals "RE" s ans[3]++ ans[3] ans 3 System.out.println("AC x " + ans[0]) System.out.println System.out System System.out "AC x " + ans[0] "AC x " ans[0] ans 0 System.out.println("WA x " + ans[1]) System.out.println System.out System System.out "WA x " + ans[1] "WA x " ans[1] ans 1 System.out.println("TLE x " + ans[2]) System.out.println System.out System System.out "TLE x " + ans[2] "TLE x " ans[2] ans 2 System.out.println("RE x " + ans[3]) System.out.println System.out System System.out "RE x " + ans[3] "RE x " ans[3] ans 3 String[] args args public class Main {

    public static void main(String[] args) {
      // 準備
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String s;

      int[] ans = new int[4];

      for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      }

      System.out.println("AC x " + ans[0]);
      System.out.println("WA x " + ans[1]);
      System.out.println("TLE x " + ans[2]);
      System.out.println("RE x " + ans[3]);
    }
} public class Main {

    public static void main(String[] args) {
      // 準備
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String s;

      int[] ans = new int[4];

      for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      }

      System.out.println("AC x " + ans[0]);
      System.out.println("WA x " + ans[1]);
      System.out.println("TLE x " + ans[2]);
      System.out.println("RE x " + ans[3]);
    }
} Main
// 今回でいえば、A問題の方が実装難しいです･･･。
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
      // 準備
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      String s;

      int[] ans = new int[4];

      for(int i=0; i<n; ++i) {
        s = sc.next();
        if("AC".equals(s))
          ans[0]++;
        if("WA".equals(s))
          ans[1]++;
        if("TLE".equals(s))
          ans[2]++;
        if("RE".equals(s))
          ans[3]++;
      }

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