import java.util.Scanner;

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

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