import java.util.Scanner;

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

        int testNum = scanner.nextInt();
        String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
        int[] score = new int[4];

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

        int testNum = scanner.nextInt();
        String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
        int[] score = new int[4];

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

        int testNum = scanner.nextInt();
        String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
        int[] score = new int[4];

        for (int i = 0; i < testNum+1; i++) {
            String temp = scanner.nextLine();
            switch (temp) {
                case "AC" :
                    score[0]++;
                    break;
                case "WA" :
                    score[1]++;
                    break;
                case "TLE" :
                    score[2]++;
                    break;
                case "RE" :
                    score[3]++;
            }
        }
        for(int i = 0; i<4; i++) {
            System.out.println(scoreName[i]+" x "+score[i]);
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int testNum = scanner.nextInt();
        String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
        int[] score = new int[4];

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

        int testNum = scanner.nextInt();
        String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
        int[] score = new int[4];

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

        int testNum = scanner.nextInt();
        String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
        int[] score = new int[4];

        for (int i = 0; i < testNum+1; i++) {
            String temp = scanner.nextLine();
            switch (temp) {
                case "AC" :
                    score[0]++;
                    break;
                case "WA" :
                    score[1]++;
                    break;
                case "TLE" :
                    score[2]++;
                    break;
                case "RE" :
                    score[3]++;
            }
        }
        for(int i = 0; i<4; i++) {
            System.out.println(scoreName[i]+" x "+score[i]);
        }
    }
} Main
import java.util.Scanner;

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

        int testNum = scanner.nextInt();
        String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
        int[] score = new int[4];

        for (int i = 0; i < testNum+1; i++) {
            String temp = scanner.nextLine();
            switch (temp) {
                case "AC" :
                    score[0]++;
                    break;
                case "WA" :
                    score[1]++;
                    break;
                case "TLE" :
                    score[2]++;
                    break;
                case "RE" :
                    score[3]++;
            }
        }
        for(int i = 0; i<4; i++) {
            System.out.println(scoreName[i]+" x "+score[i]);
        }
    }
}
  