import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());

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

        for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        }

        pw.println("AC x " + AC);
        pw.println("WA x " + WA);
        pw.println("TLE x " + TLE);
        pw.println("RE x " + RE);

        br.close();
        pw.close();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.PrintWriter; PrintWriter java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());

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

        for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        }

        pw.println("AC x " + AC);
        pw.println("WA x " + WA);
        pw.println("TLE x " + TLE);
        pw.println("RE x " + RE);

        br.close();
        pw.close();
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());

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

        for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        }

        pw.println("AC x " + AC);
        pw.println("WA x " + WA);
        pw.println("TLE x " + TLE);
        pw.println("RE x " + RE);

        br.close();
        pw.close();
    } main {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());

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

        for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        }

        pw.println("AC x " + AC);
        pw.println("WA x " + WA);
        pw.println("TLE x " + TLE);
        pw.println("RE x " + RE);

        br.close();
        pw.close();
    } BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in)); br new BufferedReader(new java.io.InputStreamReader(System.in)) PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int N = Integer.parseInt(st.nextToken()); N Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int AC = 0; AC 0 int WA = 0; WA 0 int TLE = 0; TLE 0 int RE = 0; RE 0 for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        } {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) String target = st.nextToken(); target st.nextToken() st.nextToken st switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            } target case "AC" : "AC" case "AC" : AC += 1 AC 1 break; case "WA" : "WA" case "WA" : WA += 1 WA 1 break; case "TLE" : "TLE" case "TLE" : TLE += 1 TLE 1 break; case "RE" : "RE" case "RE" : RE += 1 RE 1 break; pw.println("AC x " + AC) pw.println pw "AC x " + AC "AC x " AC pw.println("WA x " + WA) pw.println pw "WA x " + WA "WA x " WA pw.println("TLE x " + TLE) pw.println pw "TLE x " + TLE "TLE x " TLE pw.println("RE x " + RE) pw.println pw "RE x " + RE "RE x " RE br.close() br.close br pw.close() pw.close pw String[] args args public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());

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

        for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        }

        pw.println("AC x " + AC);
        pw.println("WA x " + WA);
        pw.println("TLE x " + TLE);
        pw.println("RE x " + RE);

        br.close();
        pw.close();
    }
} public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());

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

        for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        }

        pw.println("AC x " + AC);
        pw.println("WA x " + WA);
        pw.println("TLE x " + TLE);
        pw.println("RE x " + RE);

        br.close();
        pw.close();
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        StringTokenizer st = new StringTokenizer(br.readLine());

        int N = Integer.parseInt(st.nextToken());

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

        for(int i = 0; i < N; i++) {
            st = new StringTokenizer(br.readLine());
            String target = st.nextToken();

            switch (target) {
                case "AC" :
                    AC += 1;
                    break;
                case "WA" :
                    WA += 1;
                    break;
                case "TLE" :
                    TLE += 1;
                    break;
                case "RE" :
                    RE += 1;
                    break;
            }  
        }

        pw.println("AC x " + AC);
        pw.println("WA x " + WA);
        pw.println("TLE x " + TLE);
        pw.println("RE x " + RE);

        br.close();
        pw.close();
    }
}