import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        int acnum = 0, wanum = 0, tlenum = 0, renum = 0;
        String judge = "";
        for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acnum);
        System.out.println("WA x " + wanum);
        System.out.println("TLE x " + tlenum);
        System.out.println("RE x " + renum);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        int acnum = 0, wanum = 0, tlenum = 0, renum = 0;
        String judge = "";
        for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acnum);
        System.out.println("WA x " + wanum);
        System.out.println("TLE x " + tlenum);
        System.out.println("RE x " + renum);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        int acnum = 0, wanum = 0, tlenum = 0, renum = 0;
        String judge = "";
        for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acnum);
        System.out.println("WA x " + wanum);
        System.out.println("TLE x " + tlenum);
        System.out.println("RE x " + renum);
    } main {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        int acnum = 0, wanum = 0, tlenum = 0, renum = 0;
        String judge = "";
        for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acnum);
        System.out.println("WA x " + wanum);
        System.out.println("TLE x " + tlenum);
        System.out.println("RE x " + renum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long n = sc.nextLong(); n sc.nextLong() sc.nextLong sc int acnum = 0 acnum 0 wanum = 0 wanum 0 tlenum = 0 tlenum 0 renum = 0; renum 0 String judge = ""; judge "" for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        } long i = 0; long i = 0; i 0 i < n + 1 i n + 1 n 1 i++ i++ i {
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        } {
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        } judge = sc.nextLine() judge sc.nextLine() sc.nextLine sc switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            } judge case "AC": "AC" case "AC": acnum++ acnum break; case "WA": "WA" case "WA": wanum++ wanum break; case "TLE": "TLE" case "TLE": tlenum++ tlenum break; case "RE": "RE" case "RE": renum++ renum break; default: default: break; sc.close() sc.close sc System.out.println("AC x " + acnum) System.out.println System.out System System.out "AC x " + acnum "AC x " acnum System.out.println("WA x " + wanum) System.out.println System.out System System.out "WA x " + wanum "WA x " wanum System.out.println("TLE x " + tlenum) System.out.println System.out System System.out "TLE x " + tlenum "TLE x " tlenum System.out.println("RE x " + renum) System.out.println System.out System System.out "RE x " + renum "RE x " renum String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        int acnum = 0, wanum = 0, tlenum = 0, renum = 0;
        String judge = "";
        for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acnum);
        System.out.println("WA x " + wanum);
        System.out.println("TLE x " + tlenum);
        System.out.println("RE x " + renum);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        int acnum = 0, wanum = 0, tlenum = 0, renum = 0;
        String judge = "";
        for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acnum);
        System.out.println("WA x " + wanum);
        System.out.println("TLE x " + tlenum);
        System.out.println("RE x " + renum);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        int acnum = 0, wanum = 0, tlenum = 0, renum = 0;
        String judge = "";
        for(long i = 0; i < n + 1; i++){
            judge = sc.nextLine();
            switch(judge){
                case "AC":
                    acnum++;
                    break;
                case "WA":
                    wanum++;
                    break;
                case "TLE":
                    tlenum++;
                    break;
                case "RE":
                    renum++;
                    break;
                default:
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acnum);
        System.out.println("WA x " + wanum);
        System.out.println("TLE x " + tlenum);
        System.out.println("RE x " + renum);
    }
}
