import java.util.*;
import java.lang.Math;
public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int counterAC = 0;
        int counterWA = 0;
        int counterTLE = 0;
        int counterRE = 0;
        for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            }
            System.out.println("AC x " + counterAC);
            System.out.println("WA x " + counterWA);
            System.out.println("TLE x " + counterTLE);
            System.out.println("RE x " + counterRE);
    }
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int counterAC = 0;
        int counterWA = 0;
        int counterTLE = 0;
        int counterRE = 0;
        for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            }
            System.out.println("AC x " + counterAC);
            System.out.println("WA x " + counterWA);
            System.out.println("TLE x " + counterTLE);
            System.out.println("RE x " + counterRE);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int counterAC = 0;
        int counterWA = 0;
        int counterTLE = 0;
        int counterRE = 0;
        for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            }
            System.out.println("AC x " + counterAC);
            System.out.println("WA x " + counterWA);
            System.out.println("TLE x " + counterTLE);
            System.out.println("RE x " + counterRE);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int counterAC = 0;
        int counterWA = 0;
        int counterTLE = 0;
        int counterRE = 0;
        for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            }
            System.out.println("AC x " + counterAC);
            System.out.println("WA x " + counterWA);
            System.out.println("TLE x " + counterTLE);
            System.out.println("RE x " + counterRE);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int counterAC = 0; counterAC 0 int counterWA = 0; counterWA 0 int counterTLE = 0; counterTLE 0 int counterRE = 0; counterRE 0 for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            } int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            } {
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            } String S = sc.next(); S sc.next() sc.next sc if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    } S.equals("AC") S.equals S "AC" {
                        counterAC++;
                    } counterAC++ counterAC if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    } S.equals("WA") S.equals S "WA" {
                        counterWA++;
                    } counterWA++ counterWA if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    } S.equals("TLE") S.equals S "TLE" {
                        counterTLE++;
                    } counterTLE++ counterTLE if(S.equals("RE")){
                        counterRE++;
                    } S.equals("RE") S.equals S "RE" {
                        counterRE++;
                    } counterRE++ counterRE System.out.println("AC x " + counterAC) System.out.println System.out System System.out "AC x " + counterAC "AC x " counterAC System.out.println("WA x " + counterWA) System.out.println System.out System System.out "WA x " + counterWA "WA x " counterWA System.out.println("TLE x " + counterTLE) System.out.println System.out System System.out "TLE x " + counterTLE "TLE x " counterTLE System.out.println("RE x " + counterRE) System.out.println System.out System System.out "RE x " + counterRE "RE x " counterRE String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int counterAC = 0;
        int counterWA = 0;
        int counterTLE = 0;
        int counterRE = 0;
        for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            }
            System.out.println("AC x " + counterAC);
            System.out.println("WA x " + counterWA);
            System.out.println("TLE x " + counterTLE);
            System.out.println("RE x " + counterRE);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int counterAC = 0;
        int counterWA = 0;
        int counterTLE = 0;
        int counterRE = 0;
        for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            }
            System.out.println("AC x " + counterAC);
            System.out.println("WA x " + counterWA);
            System.out.println("TLE x " + counterTLE);
            System.out.println("RE x " + counterRE);
    }
} Main
import java.util.*;
import java.lang.Math;
public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int counterAC = 0;
        int counterWA = 0;
        int counterTLE = 0;
        int counterRE = 0;
        for(int i = 0; i < N; i ++){
                    String S = sc.next();
                    if(S.equals("AC")){
                        counterAC++;
                    }else if(S.equals("WA")){
                        counterWA++;
                    }else if(S.equals("TLE")){
                        counterTLE++;
                    }else if(S.equals("RE")){
                        counterRE++;
                    }
            }
            System.out.println("AC x " + counterAC);
            System.out.println("WA x " + counterWA);
            System.out.println("TLE x " + counterTLE);
            System.out.println("RE x " + counterRE);
    }
}
