import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        //値を取得
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        String[] S = new String[N];
        for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        }
        
        int[] C = new int[4];
        
        for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        }
        
        //出力
        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        //値を取得
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        String[] S = new String[N];
        for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        }
        
        int[] C = new int[4];
        
        for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        }
        
        //出力
        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
} Main public static void main(String[] args) throws Exception {
        //値を取得
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        String[] S = new String[N];
        for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        }
        
        int[] C = new int[4];
        
        for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        }
        
        //出力
        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    } main {
        //値を取得
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        String[] S = new String[N];
        for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        }
        
        int[] C = new int[4];
        
        for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        }
        
        //出力
        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] S = new String[N]; S new String[N] N for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        } int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
            S[i] = sc.next();
        } {
            S[i] = sc.next();
        } S[i] = sc.next() S[i] S i sc.next() sc.next sc int[] C = new int[4]; C new int[4] 4 for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        } int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        } {
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        } if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            } S[i].equals("AC") S[i].equals S[i] S i "AC" {
                C[0]++;
            } C[0]++ C[0] C 0 if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            } S[i].equals("WA") S[i].equals S[i] S i "WA" {
                C[1]++;
            } C[1]++ C[1] C 1 if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            } S[i].equals("TLE") S[i].equals S[i] S i "TLE" {
                C[2]++;
            } C[2]++ C[2] C 2 if(S[i].equals("RE")){
                C[3]++;
            } S[i].equals("RE") S[i].equals S[i] S i "RE" {
                C[3]++;
            } C[3]++ C[3] C 3 System.out.println("AC x " + C[0]) System.out.println System.out System System.out "AC x " + C[0] "AC x " C[0] C 0 System.out.println("WA x " + C[1]) System.out.println System.out System System.out "WA x " + C[1] "WA x " C[1] C 1 System.out.println("TLE x " + C[2]) System.out.println System.out System System.out "TLE x " + C[2] "TLE x " C[2] C 2 System.out.println("RE x " + C[3]) System.out.println System.out System System.out "RE x " + C[3] "RE x " C[3] C 3 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        //値を取得
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        String[] S = new String[N];
        for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        }
        
        int[] C = new int[4];
        
        for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        }
        
        //出力
        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        //値を取得
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        String[] S = new String[N];
        for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        }
        
        int[] C = new int[4];
        
        for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        }
        
        //出力
        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        //値を取得
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        String[] S = new String[N];
        for (int i = 0; i < N; ++i){
            S[i] = sc.next();
        }
        
        int[] C = new int[4];
        
        for (int i = 0; i < N; ++i){
            if(S[i].equals("AC")){
                C[0]++;
            } else if(S[i].equals("WA")){
                C[1]++;
            } else if(S[i].equals("TLE")){
                C[2]++;
            } else if(S[i].equals("RE")){
                C[3]++;
            }
        }
        
        //出力
        System.out.println("AC x " + C[0]);
        System.out.println("WA x " + C[1]);
        System.out.println("TLE x " + C[2]);
        System.out.println("RE x " + C[3]);
    }
}
