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

public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] ans = new int[4]; // AC, WA, TLE, RE

        for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        }

        System.out.println("AC x " + ans[0]);
        System.out.println("WA x " + ans[1]);
        System.out.println("TLE x " + ans[2]);
        System.out.println("RE  x " + ans[3]);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] ans = new int[4]; // AC, WA, TLE, RE

        for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        }

        System.out.println("AC x " + ans[0]);
        System.out.println("WA x " + ans[1]);
        System.out.println("TLE x " + ans[2]);
        System.out.println("RE  x " + ans[3]);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} Main public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] ans = new int[4]; // AC, WA, TLE, RE

        for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        }

        System.out.println("AC x " + ans[0]);
        System.out.println("WA x " + ans[1]);
        System.out.println("TLE x " + ans[2]);
        System.out.println("RE  x " + ans[3]);
    } main {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] ans = new int[4]; // AC, WA, TLE, RE

        for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        }

        System.out.println("AC x " + ans[0]);
        System.out.println("WA x " + ans[1]);
        System.out.println("TLE x " + ans[2]);
        System.out.println("RE  x " + ans[3]);
    } MyScanner sc = new MyScanner(); sc new MyScanner() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] ans = new int[4]; ans new int[4] 4 for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        } {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        } String s = sc.next(); s sc.next() sc.next sc switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            } s case "AC": "AC" case "AC": ans[0]++ ans[0] ans 0 break; case "WA": "WA" case "WA": ans[1]++ ans[1] ans 1 break; case "TLE": "TLE" case "TLE": ans[2]++ ans[2] ans 2 break; case "RE": "RE" case "RE": ans[3]++ ans[3] ans 3 break; System.out.println("AC x " + ans[0]) System.out.println System.out System System.out "AC x " + ans[0] "AC x " ans[0] ans 0 System.out.println("WA x " + ans[1]) System.out.println System.out System System.out "WA x " + ans[1] "WA x " ans[1] ans 1 System.out.println("TLE x " + ans[2]) System.out.println System.out System System.out "TLE x " + ans[2] "TLE x " ans[2] ans 2 System.out.println("RE  x " + ans[3]) System.out.println System.out System System.out "RE  x " + ans[3] "RE  x " ans[3] ans 3 String[] args args static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    } MyScanner BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15); reader new BufferedReader(new InputStreamReader(System.in), 1 << 15) StringTokenizer tokenizer; tokenizer String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        } next {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        } try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            } catch (IOException ignored) {
            } IOException ignored {
            } {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                } tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
                    tokenizer = new StringTokenizer(reader.readLine());
                } tokenizer = new StringTokenizer(reader.readLine()) tokenizer new StringTokenizer(reader.readLine()) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] ans = new int[4]; // AC, WA, TLE, RE

        for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        }

        System.out.println("AC x " + ans[0]);
        System.out.println("WA x " + ans[1]);
        System.out.println("TLE x " + ans[2]);
        System.out.println("RE  x " + ans[3]);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] ans = new int[4]; // AC, WA, TLE, RE

        for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        }

        System.out.println("AC x " + ans[0]);
        System.out.println("WA x " + ans[1]);
        System.out.println("TLE x " + ans[2]);
        System.out.println("RE  x " + ans[3]);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] ans = new int[4]; // AC, WA, TLE, RE

        for (int i = 0; i < n; i++) {
            String s = sc.next();
            switch (s) {
                case "AC":  ans[0]++; break;
                case "WA":  ans[1]++; break;
                case "TLE": ans[2]++; break;
                case "RE":  ans[3]++; break;
            }
        }

        System.out.println("AC x " + ans[0]);
        System.out.println("WA x " + ans[1]);
        System.out.println("TLE x " + ans[2]);
        System.out.println("RE  x " + ans[3]);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
}