import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final String AC = "AC";
        final String WA = "WA";
        final String TLE = "TLE";
        final String RE = "RE";
        final String x = " x ";

        int ACc = 0;
        int WAc = 0;
        int TLEc = 0;
        int REc = 0;

        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        }
        System.out.println(AC + x + ACc);
        System.out.println(WA + x + WAc);
        System.out.println(TLE + x + TLEc);
        System.out.println(RE + x + REc);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final String AC = "AC";
        final String WA = "WA";
        final String TLE = "TLE";
        final String RE = "RE";
        final String x = " x ";

        int ACc = 0;
        int WAc = 0;
        int TLEc = 0;
        int REc = 0;

        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        }
        System.out.println(AC + x + ACc);
        System.out.println(WA + x + WAc);
        System.out.println(TLE + x + TLEc);
        System.out.println(RE + x + REc);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final String AC = "AC";
        final String WA = "WA";
        final String TLE = "TLE";
        final String RE = "RE";
        final String x = " x ";

        int ACc = 0;
        int WAc = 0;
        int TLEc = 0;
        int REc = 0;

        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        }
        System.out.println(AC + x + ACc);
        System.out.println(WA + x + WAc);
        System.out.println(TLE + x + TLEc);
        System.out.println(RE + x + REc);
    } main {
        Scanner sc = new Scanner(System.in);

        final String AC = "AC";
        final String WA = "WA";
        final String TLE = "TLE";
        final String RE = "RE";
        final String x = " x ";

        int ACc = 0;
        int WAc = 0;
        int TLEc = 0;
        int REc = 0;

        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        }
        System.out.println(AC + x + ACc);
        System.out.println(WA + x + WAc);
        System.out.println(TLE + x + TLEc);
        System.out.println(RE + x + REc);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final String AC = "AC"; AC "AC" final String WA = "WA"; WA "WA" final String TLE = "TLE"; TLE "TLE" final String RE = "RE"; RE "RE" final String x = " x "; x " x " int ACc = 0; ACc 0 int WAc = 0; WAc 0 int TLEc = 0; TLEc 0 int REc = 0; REc 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        } {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        } String S = sc.next(); S sc.next() sc.next sc if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            } S.equals(AC) S.equals S AC {
                ACc++;
            } ACc++ ACc if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            } S.equals(WA) S.equals S WA {
                WAc++;
            } WAc++ WAc if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            } S.equals(TLE) S.equals S TLE {
                TLEc++;
            } TLEc++ TLEc {
                REc++;
            } REc++ REc System.out.println(AC + x + ACc) System.out.println System.out System System.out AC + x + ACc AC + x + ACc AC x ACc System.out.println(WA + x + WAc) System.out.println System.out System System.out WA + x + WAc WA + x + WAc WA x WAc System.out.println(TLE + x + TLEc) System.out.println System.out System System.out TLE + x + TLEc TLE + x + TLEc TLE x TLEc System.out.println(RE + x + REc) System.out.println System.out System System.out RE + x + REc RE + x + REc RE x REc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final String AC = "AC";
        final String WA = "WA";
        final String TLE = "TLE";
        final String RE = "RE";
        final String x = " x ";

        int ACc = 0;
        int WAc = 0;
        int TLEc = 0;
        int REc = 0;

        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        }
        System.out.println(AC + x + ACc);
        System.out.println(WA + x + WAc);
        System.out.println(TLE + x + TLEc);
        System.out.println(RE + x + REc);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final String AC = "AC";
        final String WA = "WA";
        final String TLE = "TLE";
        final String RE = "RE";
        final String x = " x ";

        int ACc = 0;
        int WAc = 0;
        int TLEc = 0;
        int REc = 0;

        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        }
        System.out.println(AC + x + ACc);
        System.out.println(WA + x + WAc);
        System.out.println(TLE + x + TLEc);
        System.out.println(RE + x + REc);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final String AC = "AC";
        final String WA = "WA";
        final String TLE = "TLE";
        final String RE = "RE";
        final String x = " x ";

        int ACc = 0;
        int WAc = 0;
        int TLEc = 0;
        int REc = 0;

        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals(AC)) {
                ACc++;
            } else if (S.equals(WA)) {
                WAc++;
            } else if (S.equals(TLE)) {
                TLEc++;
            } else {
                REc++;
            }
        }
        System.out.println(AC + x + ACc);
        System.out.println(WA + x + WAc);
        System.out.println(TLE + x + TLEc);
        System.out.println(RE + x + REc);
    }
}