import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] C = new int[4];

        for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        }

        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] C = new int[4];

        for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        }

        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] C = new int[4];

        for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        }

        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] C = new int[4];

        for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        }

        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] C = new int[4]; C new int[4] 4 for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        } {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        } String s = sc.next(); s sc.next() sc.next sc switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            } s case "AC": "AC" case "AC": C[0] = C[0] + 1 C[0] C 0 C[0] + 1 C[0] C 0 1 break; case "WA": "WA" case "WA": C[1] = C[1] + 1 C[1] C 1 C[1] + 1 C[1] C 1 1 break; case "TLE": "TLE" case "TLE": C[2] = C[2] + 1 C[2] C 2 C[2] + 1 C[2] C 2 1 break; default: default: C[3] = C[3] + 1 C[3] C 3 C[3] + 1 C[3] C 3 1 break; System.out.println("AC x " + C[0]) System.out.println System.out System System.out "AC x " + C[0] "AC x " C[0] C 0 System.out.println("WA x " + C[1]) System.out.println System.out System System.out "WA x " + C[1] "WA x " C[1] C 1 System.out.println("TLE x " + C[2]) System.out.println System.out System System.out "TLE x " + C[2] "TLE x " C[2] C 2 System.out.println("RE x " + C[3]) System.out.println System.out System System.out "RE x " + C[3] "RE x " C[3] C 3 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] C = new int[4];

        for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        }

        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] C = new int[4];

        for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        }

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

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] C = new int[4];

        for (int i = 0; i < N; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":
                    C[0] = C[0] + 1;
                    break;
                case "WA":
                    C[1] = C[1] + 1;
                    break;
                case "TLE":
                    C[2] = C[2] + 1;
                    break;
                default:
                    C[3] = C[3] + 1;
                    break;
            }
        }

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