import java.util.ArrayList;
import java.util.Scanner;


public class Main {

        public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        int N = in.nextInt();
        int count1 =0, count2 =0, count3 = 0, count4 =0;
        ArrayList<String> m= new ArrayList<>();
        for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        }
        for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        }
        System.out.println("AC x " + count1);
        System.out.println("WA x " + count2);
        System.out.println("TLE x " + count3);
        System.out.println("RE x " + count4);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

        public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        int N = in.nextInt();
        int count1 =0, count2 =0, count3 = 0, count4 =0;
        ArrayList<String> m= new ArrayList<>();
        for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        }
        for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        }
        System.out.println("AC x " + count1);
        System.out.println("WA x " + count2);
        System.out.println("TLE x " + count3);
        System.out.println("RE x " + count4);
    }
} Main public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        int N = in.nextInt();
        int count1 =0, count2 =0, count3 = 0, count4 =0;
        ArrayList<String> m= new ArrayList<>();
        for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        }
        for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        }
        System.out.println("AC x " + count1);
        System.out.println("WA x " + count2);
        System.out.println("TLE x " + count3);
        System.out.println("RE x " + count4);
    } main {
        Scanner in=new Scanner(System.in);
        int N = in.nextInt();
        int count1 =0, count2 =0, count3 = 0, count4 =0;
        ArrayList<String> m= new ArrayList<>();
        for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        }
        for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        }
        System.out.println("AC x " + count1);
        System.out.println("WA x " + count2);
        System.out.println("TLE x " + count3);
        System.out.println("RE x " + count4);
    } Scanner in=new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int count1 =0 count1 0 count2 =0 count2 0 count3 = 0 count3 0 count4 =0; count4 0 ArrayList<String> m= new ArrayList<>(); m new ArrayList<>() for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String s = in.next();
            m.add(s);
        } {
            String s = in.next();
            m.add(s);
        } String s = in.next(); s in.next() in.next in m.add(s) m.add m s for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        } String s m {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        } {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        } switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            } s case "AC": "AC" case "AC": count1++ count1 break; case "WA": "WA" case "WA": count2++ count2 break; case "TLE": "TLE" case "TLE": count3++ count3 break; case "RE": "RE" case "RE": count4++ count4 break; System.out.println("AC x " + count1) System.out.println System.out System System.out "AC x " + count1 "AC x " count1 System.out.println("WA x " + count2) System.out.println System.out System System.out "WA x " + count2 "WA x " count2 System.out.println("TLE x " + count3) System.out.println System.out System System.out "TLE x " + count3 "TLE x " count3 System.out.println("RE x " + count4) System.out.println System.out System System.out "RE x " + count4 "RE x " count4 String[] args args public class Main {

        public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        int N = in.nextInt();
        int count1 =0, count2 =0, count3 = 0, count4 =0;
        ArrayList<String> m= new ArrayList<>();
        for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        }
        for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        }
        System.out.println("AC x " + count1);
        System.out.println("WA x " + count2);
        System.out.println("TLE x " + count3);
        System.out.println("RE x " + count4);
    }
} public class Main {

        public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        int N = in.nextInt();
        int count1 =0, count2 =0, count3 = 0, count4 =0;
        ArrayList<String> m= new ArrayList<>();
        for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        }
        for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        }
        System.out.println("AC x " + count1);
        System.out.println("WA x " + count2);
        System.out.println("TLE x " + count3);
        System.out.println("RE x " + count4);
    }
} Main
import java.util.ArrayList;
import java.util.Scanner;


public class Main {

        public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        int N = in.nextInt();
        int count1 =0, count2 =0, count3 = 0, count4 =0;
        ArrayList<String> m= new ArrayList<>();
        for (int i = 0; i < N; i++) {
            String s = in.next();
            m.add(s);
        }
        for (String s : m) {
            switch (s) {
                case "AC":
                    count1++;
                    break;
                case "WA":
                    count2++;
                    break;
                case "TLE":
                    count3++;
                    break;
                case "RE":
                    count4++;
                    break;
            }
        }
        System.out.println("AC x " + count1);
        System.out.println("WA x " + count2);
        System.out.println("TLE x " + count3);
        System.out.println("RE x " + count4);
    }
}