import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int[] num = new int[4];
        int n = sc.nextInt();
        for (int i = 0; i <= n; i++) {
            switch (sc.nextLine()) {
                case "AC":
                    num[0]++;
                    break;
                case "WA":
                    num[1]++;
                    break;
                case "TLE":
                    num[2]++;
                    break;
                case "RE":
                    num[3]++;
                    break;
            }
        }
        System.out.println("AC x " + num[0]);
        System.out.println("WA x " + num[1]);
        System.out.println("TLE x " + num[2]);
        System.out.println("RE x " + num[3]);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        int[] num = new int[4];
        int n = sc.nextInt();
        for (int i = 0; i <= n; i++) {
            switch (sc.nextLine()) {
                case "AC":
                    num[0]++;
                    break;
                case "WA":
                    num[1]++;
                    break;
                case "TLE":
                    num[2]++;
                    break;
                case "RE":
                    num[3]++;
                    break;
            }
        }
        System.out.println("AC x " + num[0]);
        System.out.println("WA x " + num[1]);
        System.out.println("TLE x " + num[2]);
        System.out.println("RE x " + num[3]);
    } main {
        Scanner sc = new Scanner(System.in);

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

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

        int[] num = new int[4];
        int n = sc.nextInt();
        for (int i = 0; i <= n; i++) {
            switch (sc.nextLine()) {
                case "AC":
                    num[0]++;
                    break;
                case "WA":
                    num[1]++;
                    break;
                case "TLE":
                    num[2]++;
                    break;
                case "RE":
                    num[3]++;
                    break;
            }
        }
        System.out.println("AC x " + num[0]);
        System.out.println("WA x " + num[1]);
        System.out.println("TLE x " + num[2]);
        System.out.println("RE x " + num[3]);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int[] num = new int[4];
        int n = sc.nextInt();
        for (int i = 0; i <= n; i++) {
            switch (sc.nextLine()) {
                case "AC":
                    num[0]++;
                    break;
                case "WA":
                    num[1]++;
                    break;
                case "TLE":
                    num[2]++;
                    break;
                case "RE":
                    num[3]++;
                    break;
            }
        }
        System.out.println("AC x " + num[0]);
        System.out.println("WA x " + num[1]);
        System.out.println("TLE x " + num[2]);
        System.out.println("RE x " + num[3]);
    }
}
