import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    } main {
        try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner 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++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            } {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            } switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                } scanner.next() scanner.next scanner case "AC": "AC" case "AC": ac++ ac break; case "WA": "WA" case "WA": wa++ wa break; case "TLE": "TLE" case "TLE": tle++ tle break; case "RE": "RE" case "RE": re++ re break; default: default: break; StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append("AC x " + ac + "\n") sb.append sb "AC x " + ac + "\n" "AC x " + ac + "\n" "AC x " ac "\n" sb.append("WA x " + wa + "\n") sb.append sb "WA x " + wa + "\n" "WA x " + wa + "\n" "WA x " wa "\n" sb.append("TLE x " + tle + "\n") sb.append sb "TLE x " + tle + "\n" "TLE x " + tle + "\n" "TLE x " tle "\n" sb.append("RE x " + re + "\n") sb.append sb "RE x " + re + "\n" "RE x " + re + "\n" "RE x " re "\n" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in);) {
            int n = scanner.nextInt();
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;

            for (int i = 0; i < n; i++) {
                switch (scanner.next()) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;
                    default:
                        break;
                }
            }
            StringBuilder sb = new StringBuilder();
            sb.append("AC x " + ac + "\n");
            sb.append("WA x " + wa + "\n");
            sb.append("TLE x " + tle + "\n");
            sb.append("RE x " + re + "\n");
            System.out.println(sb.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
