import java.util.Scanner;

class Main {

    static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
        int T = scan.nextInt();
        String[] status = {"AC", "WA", "TLE", "RE"};
        int[] count = new int[4];
        while(T != 0) {
            String ans = scan.next();
            if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            }
            T--;
        }
        for(int i = 0; i < count.length; i++) {
            System.out.println(status[i] + " x " + count[i]);
        }
    }
} import java.util.Scanner; Scanner java.util class Main {

    static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
        int T = scan.nextInt();
        String[] status = {"AC", "WA", "TLE", "RE"};
        int[] count = new int[4];
        while(T != 0) {
            String ans = scan.next();
            if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            }
            T--;
        }
        for(int i = 0; i < count.length; i++) {
            System.out.println(status[i] + " x " + count[i]);
        }
    }
} Main static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args) {
        int T = scan.nextInt();
        String[] status = {"AC", "WA", "TLE", "RE"};
        int[] count = new int[4];
        while(T != 0) {
            String ans = scan.next();
            if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            }
            T--;
        }
        for(int i = 0; i < count.length; i++) {
            System.out.println(status[i] + " x " + count[i]);
        }
    } main {
        int T = scan.nextInt();
        String[] status = {"AC", "WA", "TLE", "RE"};
        int[] count = new int[4];
        while(T != 0) {
            String ans = scan.next();
            if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            }
            T--;
        }
        for(int i = 0; i < count.length; i++) {
            System.out.println(status[i] + " x " + count[i]);
        }
    } int T = scan.nextInt(); T scan.nextInt() scan.nextInt scan String[] status = {"AC", "WA", "TLE", "RE"}; status {"AC", "WA", "TLE", "RE"} "AC" "WA" "TLE" "RE" int[] count = new int[4]; count new int[4] 4 while(T != 0) {
            String ans = scan.next();
            if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            }
            T--;
        } T != 0 T 0 {
            String ans = scan.next();
            if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            }
            T--;
        } String ans = scan.next(); ans scan.next() scan.next scan if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            } ans.equals("AC") ans.equals ans "AC" {
                count[0] = count[0] + 1 ;
            } count[0] = count[0] + 1 count[0] count 0 count[0] + 1 count[0] count 0 1 if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            } ans.equals("WA") ans.equals ans "WA" {
                count[1] = count[1] + 1;
            } count[1] = count[1] + 1 count[1] count 1 count[1] + 1 count[1] count 1 1 if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            } ans.equals("TLE") ans.equals ans "TLE" {
                count[2] = count[2] + 1;
            } count[2] = count[2] + 1 count[2] count 2 count[2] + 1 count[2] count 2 1 if (ans.equals("RE")){
                count[3] = count[3] + 1;
            } ans.equals("RE") ans.equals ans "RE" {
                count[3] = count[3] + 1;
            } count[3] = count[3] + 1 count[3] count 3 count[3] + 1 count[3] count 3 1 T-- T for(int i = 0; i < count.length; i++) {
            System.out.println(status[i] + " x " + count[i]);
        } int i = 0; int i = 0; i 0 i < count.length i count.length count count.length i++ i++ i {
            System.out.println(status[i] + " x " + count[i]);
        } {
            System.out.println(status[i] + " x " + count[i]);
        } System.out.println(status[i] + " x " + count[i]) System.out.println System.out System System.out status[i] + " x " + count[i] status[i] + " x " + count[i] status[i] status i " x " count[i] count i String[] args args
import java.util.Scanner;

class Main {

    static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
        int T = scan.nextInt();
        String[] status = {"AC", "WA", "TLE", "RE"};
        int[] count = new int[4];
        while(T != 0) {
            String ans = scan.next();
            if(ans.equals("AC")) {
                count[0] = count[0] + 1 ;
            } else if (ans.equals("WA")) {
                count[1] = count[1] + 1;
            } else if (ans.equals("TLE")) {
                count[2] = count[2] + 1;
            } else if (ans.equals("RE")){
                count[3] = count[3] + 1;
            }
            T--;
        }
        for(int i = 0; i < count.length; i++) {
            System.out.println(status[i] + " x " + count[i]);
        }
    }
}
