import java.util.*;
public class Main{
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                );
    }

    public static Map<String,Integer> solve (ArrayList<String> test_case){
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        sum.put("AC", ac);
        sum.put("TLE", tle);
        sum.put("RE", re);
        sum.put("WA", wa);

        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    }

} import java.util.*; util.* java public class Main{
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                );
    }

    public static Map<String,Integer> solve (ArrayList<String> test_case){
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        sum.put("AC", ac);
        sum.put("TLE", tle);
        sum.put("RE", re);
        sum.put("WA", wa);

        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    }

} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                );
    } main {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                );
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<String> test_case = new ArrayList<>(); test_case new ArrayList<>() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        } int i = 0; int i = 0; i 0 i < n+1 i n+1 n 1 i++ i++ i {
            test_case.add(sc.nextLine());
        } {
            test_case.add(sc.nextLine());
        } test_case.add(sc.nextLine()) test_case.add test_case sc.nextLine() sc.nextLine sc Map<String,Integer> sum = new HashMap<>(); sum new HashMap<>() sum = solve(test_case) sum solve(test_case) solve test_case System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                ) System.out.println System.out System System.out "AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE") "RE x " System.getProperty("line.separator") sum.get("TLE") "TLE x " System.getProperty("line.separator") sum.get("WA") "WA x " System.getProperty("line.separator") "AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE") "AC x " sum.get("AC") sum.get sum "AC" System.getProperty("line.separator") System.getProperty System "line.separator" "WA x " sum.get("WA") sum.get sum "WA" System.getProperty("line.separator") System.getProperty System "line.separator" "TLE x " sum.get("TLE") sum.get sum "TLE" System.getProperty("line.separator") System.getProperty System "line.separator" "RE x " sum.get("RE") sum.get sum "RE" String args[] args public static Map<String,Integer> solve (ArrayList<String> test_case){
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        sum.put("AC", ac);
        sum.put("TLE", tle);
        sum.put("RE", re);
        sum.put("WA", wa);

        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    } solve {
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        sum.put("AC", ac);
        sum.put("TLE", tle);
        sum.put("RE", re);
        sum.put("WA", wa);

        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    } Map<String,Integer> sum = new HashMap<>(); sum new HashMap<>() int ac = 0; ac 0 int tle = 0; tle 0 int wa = 0; wa 0 int re = 0; re 0 sum.put("AC", ac) sum.put sum "AC" ac sum.put("TLE", tle) sum.put sum "TLE" tle sum.put("RE", re) sum.put sum "RE" re sum.put("WA", wa) sum.put sum "WA" wa for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        } String test test_case {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        } {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        } switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            } test case "AC": "AC" case "AC": ac++ ac sum.put("AC",ac) sum.put sum "AC" ac break; case "TLE": "TLE" case "TLE": tle++ tle sum.put("TLE",tle) sum.put sum "TLE" tle break; case "WA": "WA" case "WA": wa++ wa sum.put("WA",wa) sum.put sum "WA" wa break; case "RE": "RE" case "RE": re++ re sum.put("RE",re) sum.put sum "RE" re return sum; sum ArrayList<String> test_case test_case public class Main{
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                );
    }

    public static Map<String,Integer> solve (ArrayList<String> test_case){
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        sum.put("AC", ac);
        sum.put("TLE", tle);
        sum.put("RE", re);
        sum.put("WA", wa);

        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    }

} public class Main{
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                );
    }

    public static Map<String,Integer> solve (ArrayList<String> test_case){
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        sum.put("AC", ac);
        sum.put("TLE", tle);
        sum.put("RE", re);
        sum.put("WA", wa);

        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    }

} Main
import java.util.*;
public class Main{
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n+1; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + System.getProperty("line.separator")
                + "WA x " + sum.get("WA") + System.getProperty("line.separator")
                + "TLE x " + sum.get("TLE") + System.getProperty("line.separator")
                + "RE x " + sum.get("RE")
                );
    }

    public static Map<String,Integer> solve (ArrayList<String> test_case){
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        sum.put("AC", ac);
        sum.put("TLE", tle);
        sum.put("RE", re);
        sum.put("WA", wa);

        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("TLE",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    }

}