import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] A = new String[N+1];
        for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        }
        sc.close();

        int AC = 0;
        int WA = 0;
        int TLE = 0;
        int RE = 0;

        for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        }
        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] A = new String[N+1];
        for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        }
        sc.close();

        int AC = 0;
        int WA = 0;
        int TLE = 0;
        int RE = 0;

        for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        }
        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] A = new String[N+1];
        for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        }
        sc.close();

        int AC = 0;
        int WA = 0;
        int TLE = 0;
        int RE = 0;

        for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        }
        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] A = new String[N+1];
        for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        }
        sc.close();

        int AC = 0;
        int WA = 0;
        int TLE = 0;
        int RE = 0;

        for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        }
        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] A = new String[N+1]; A new String[N+1] N+1 N 1 for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        } int i = 1 ; int i = 1 ; i 1 i <= N i N i++ i++ i {
            A[i] = sc.next();
        } {
            A[i] = sc.next();
        } A[i] = sc.next() A[i] A i sc.next() sc.next sc sc.close() sc.close sc int AC = 0; AC 0 int WA = 0; WA 0 int TLE = 0; TLE 0 int RE = 0; RE 0 for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        } int i = 1 ; int i = 1 ; i 1 i<= N i N i++ i++ i {
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        } {
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        } if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            } A[i].equals("AC") A[i].equals A[i] A i "AC" {
                AC++;
            } AC++ AC if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            } A[i].equals("WA") A[i].equals A[i] A i "WA" {
                WA++;
            } WA++ WA if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            } A[i].equals("TLE") A[i].equals A[i] A i "TLE" {
                TLE++;
            } TLE++ TLE if(A[i].equals("RE")){
                RE++;
            } A[i].equals("RE") A[i].equals A[i] A i "RE" {
                RE++;
            } RE++ RE System.out.println("AC x " + AC) System.out.println System.out System System.out "AC x " + AC "AC x " AC System.out.println("WA x " + WA) System.out.println System.out System System.out "WA x " + WA "WA x " WA System.out.println("TLE x " + TLE) System.out.println System.out System System.out "TLE x " + TLE "TLE x " TLE System.out.println("RE x " + RE) System.out.println System.out System System.out "RE x " + RE "RE x " RE String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] A = new String[N+1];
        for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        }
        sc.close();

        int AC = 0;
        int WA = 0;
        int TLE = 0;
        int RE = 0;

        for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        }
        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] A = new String[N+1];
        for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        }
        sc.close();

        int AC = 0;
        int WA = 0;
        int TLE = 0;
        int RE = 0;

        for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        }
        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        String[] A = new String[N+1];
        for (int i = 1 ; i <= N ; i++){
            A[i] = sc.next();
        }
        sc.close();

        int AC = 0;
        int WA = 0;
        int TLE = 0;
        int RE = 0;

        for(int i = 1 ; i<= N ; i++){
            if(A[i].equals("AC")){
                AC++;
            }
            else if(A[i].equals("WA")){
                WA++;
            }
            else if(A[i].equals("TLE")){
                TLE++;
            }
            else if(A[i].equals("RE")){
                RE++;
            }
        }
        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }
}