import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int varN = Integer.parseInt(sc.next());
        int acCnt = 0;
        int waCnt = 0;
        int tleCnt = 0;
        int reCnt = 0;

        for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acCnt);
        System.out.println("WA x " + waCnt);
        System.out.println("TLE x " + tleCnt);
        System.out.println("RE x " + reCnt);
    }
} import java.util.*; util.* java public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int varN = Integer.parseInt(sc.next());
        int acCnt = 0;
        int waCnt = 0;
        int tleCnt = 0;
        int reCnt = 0;

        for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acCnt);
        System.out.println("WA x " + waCnt);
        System.out.println("TLE x " + tleCnt);
        System.out.println("RE x " + reCnt);
    }
} Main public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int varN = Integer.parseInt(sc.next());
        int acCnt = 0;
        int waCnt = 0;
        int tleCnt = 0;
        int reCnt = 0;

        for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acCnt);
        System.out.println("WA x " + waCnt);
        System.out.println("TLE x " + tleCnt);
        System.out.println("RE x " + reCnt);
    } main {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int varN = Integer.parseInt(sc.next());
        int acCnt = 0;
        int waCnt = 0;
        int tleCnt = 0;
        int reCnt = 0;

        for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acCnt);
        System.out.println("WA x " + waCnt);
        System.out.println("TLE x " + tleCnt);
        System.out.println("RE x " + reCnt);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int varN = Integer.parseInt(sc.next()); varN Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int acCnt = 0; acCnt 0 int waCnt = 0; waCnt 0 int tleCnt = 0; tleCnt 0 int reCnt = 0; reCnt 0 for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        } int i = 0; int i = 0; i 0 i < varN i varN i++ i++ i {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        } {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        } switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            } sc.next() sc.next sc case "AC": "AC" case "AC": acCnt++ acCnt break; case "WA": "WA" case "WA": waCnt++ waCnt break; case "TLE": "TLE" case "TLE": tleCnt++ tleCnt break; case "RE": "RE" case "RE": reCnt++ reCnt break; sc.close() sc.close sc System.out.println("AC x " + acCnt) System.out.println System.out System System.out "AC x " + acCnt "AC x " acCnt System.out.println("WA x " + waCnt) System.out.println System.out System System.out "WA x " + waCnt "WA x " waCnt System.out.println("TLE x " + tleCnt) System.out.println System.out System System.out "TLE x " + tleCnt "TLE x " tleCnt System.out.println("RE x " + reCnt) System.out.println System.out System System.out "RE x " + reCnt "RE x " reCnt final String[] args args public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int varN = Integer.parseInt(sc.next());
        int acCnt = 0;
        int waCnt = 0;
        int tleCnt = 0;
        int reCnt = 0;

        for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acCnt);
        System.out.println("WA x " + waCnt);
        System.out.println("TLE x " + tleCnt);
        System.out.println("RE x " + reCnt);
    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int varN = Integer.parseInt(sc.next());
        int acCnt = 0;
        int waCnt = 0;
        int tleCnt = 0;
        int reCnt = 0;

        for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acCnt);
        System.out.println("WA x " + waCnt);
        System.out.println("TLE x " + tleCnt);
        System.out.println("RE x " + reCnt);
    }
} Main
import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();
        final int varN = Integer.parseInt(sc.next());
        int acCnt = 0;
        int waCnt = 0;
        int tleCnt = 0;
        int reCnt = 0;

        for (int i = 0; i < varN; i++) {
            switch (sc.next()) {
                case "AC":
                    acCnt++;
                    break;
                case "WA":
                    waCnt++;
                    break;
                case "TLE":
                    tleCnt++;
                    break;
                case "RE":
                    reCnt++;
                    break;
            }
        }
        sc.close();

        System.out.println("AC x " + acCnt);
        System.out.println("WA x " + waCnt);
        System.out.println("TLE x " + tleCnt);
        System.out.println("RE x " + reCnt);
    }
}