import java.util.*;

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

        int N = sc.nextInt();
        int ans[] = new int[4];
        String str[] = {"AC", "WA", "TLE", "RE"};

        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        }

        for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int ans[] = new int[4];
        String str[] = {"AC", "WA", "TLE", "RE"};

        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        }

        for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int ans[] = new int[4];
        String str[] = {"AC", "WA", "TLE", "RE"};

        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        }

        for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int ans[] = new int[4];
        String str[] = {"AC", "WA", "TLE", "RE"};

        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        }

        for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int ans[] = new int[4]; ans new int[4] 4 String str[] = {"AC", "WA", "TLE", "RE"}; str {"AC", "WA", "TLE", "RE"} "AC" "WA" "TLE" "RE" for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        } {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        } String S = sc.next(); S sc.next() sc.next sc if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++; S.equals("AC") S.equals S "AC" ans[0]++ ans[0] ans 0 if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++; S.equals("WA") S.equals S "WA" ans[1]++ ans[1] ans 1 if (S.equals("TLE")) ans[2]++;
            else ans[3]++; S.equals("TLE") S.equals S "TLE" ans[2]++ ans[2] ans 2 ans[3]++ ans[3] ans 3 for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        } {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        } System.out.print(str[i]) System.out.print System.out System System.out str[i] str i System.out.print(" x ") System.out.print System.out System System.out " x " System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int ans[] = new int[4];
        String str[] = {"AC", "WA", "TLE", "RE"};

        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        }

        for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int ans[] = new int[4];
        String str[] = {"AC", "WA", "TLE", "RE"};

        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        }

        for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        }
    }
} Main
import java.util.*;

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

        int N = sc.nextInt();
        int ans[] = new int[4];
        String str[] = {"AC", "WA", "TLE", "RE"};

        for (int i = 0; i < N; i++) {
            String S = sc.next();
            if (S.equals("AC")) ans[0]++;
            else if (S.equals("WA")) ans[1]++;
            else if (S.equals("TLE")) ans[2]++;
            else ans[3]++;
        }

        for (int i = 0; i < 4; i++) {
            System.out.print(str[i]);
            System.out.print(" x ");
            System.out.println(ans[i]);
        }
    }
}
