import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int c0 = 0 , c1 =0,c2=0,c3 = 0;
        String s;
        for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        }
        System.out.println("AC" + " x " + c0);
        System.out.println("WA" + " x " + c1);
        System.out.println("TLE" + " x " + c2);
        System.out.println("RE" + " x " + c3);

    }

    } import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int c0 = 0 , c1 =0,c2=0,c3 = 0;
        String s;
        for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        }
        System.out.println("AC" + " x " + c0);
        System.out.println("WA" + " x " + c1);
        System.out.println("TLE" + " x " + c2);
        System.out.println("RE" + " x " + c3);

    }

    } Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int c0 = 0 , c1 =0,c2=0,c3 = 0;
        String s;
        for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        }
        System.out.println("AC" + " x " + c0);
        System.out.println("WA" + " x " + c1);
        System.out.println("TLE" + " x " + c2);
        System.out.println("RE" + " x " + c3);

    } main {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int c0 = 0 , c1 =0,c2=0,c3 = 0;
        String s;
        for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        }
        System.out.println("AC" + " x " + c0);
        System.out.println("WA" + " x " + c1);
        System.out.println("TLE" + " x " + c2);
        System.out.println("RE" + " x " + c3);

    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int n = input.nextInt(); n input.nextInt() input.nextInt input int c0 = 0 c0 0 c1 =0 c1 0 c2=0 c2 0 c3 = 0; c3 0 String s; s for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        } {
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        } s = input.next() s input.next() input.next input if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++; s.equals("AC") s.equals s "AC" c0++ c0 if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++; s.equals("WA") s.equals s "WA" c1++ c1 if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++; s.equals("TLE") s.equals s "TLE" c2++ c2 if(s.equals("RE"))
                c3++; s.equals("RE") s.equals s "RE" c3++ c3 System.out.println("AC" + " x " + c0) System.out.println System.out System System.out "AC" + " x " + c0 "AC" + " x " + c0 "AC" " x " c0 System.out.println("WA" + " x " + c1) System.out.println System.out System System.out "WA" + " x " + c1 "WA" + " x " + c1 "WA" " x " c1 System.out.println("TLE" + " x " + c2) System.out.println System.out System System.out "TLE" + " x " + c2 "TLE" + " x " + c2 "TLE" " x " c2 System.out.println("RE" + " x " + c3) System.out.println System.out System System.out "RE" + " x " + c3 "RE" + " x " + c3 "RE" " x " c3 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int c0 = 0 , c1 =0,c2=0,c3 = 0;
        String s;
        for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        }
        System.out.println("AC" + " x " + c0);
        System.out.println("WA" + " x " + c1);
        System.out.println("TLE" + " x " + c2);
        System.out.println("RE" + " x " + c3);

    }

    } public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int c0 = 0 , c1 =0,c2=0,c3 = 0;
        String s;
        for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        }
        System.out.println("AC" + " x " + c0);
        System.out.println("WA" + " x " + c1);
        System.out.println("TLE" + " x " + c2);
        System.out.println("RE" + " x " + c3);

    }

    } Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int c0 = 0 , c1 =0,c2=0,c3 = 0;
        String s;
        for(int i = 0; i < n; i++){
             s = input.next();
            if(s.equals("AC"))
                c0++;
            else if(s.equals("WA"))
                c1++;
            else if(s.equals("TLE"))
                c2++;
            else if(s.equals("RE"))
                c3++;
        }
        System.out.println("AC" + " x " + c0);
        System.out.println("WA" + " x " + c1);
        System.out.println("TLE" + " x " + c2);
        System.out.println("RE" + " x " + c3);

    }

    }
