import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        StringBuilder builder = new StringBuilder();
        int buf;
        while ((buf = System.in.read()) != '\n') {}
        l: while (true) {
            builder.setLength(0);
            while ((buf = System.in.read()) != '\n') {
                if (buf == -1) break l;
                builder.appendCodePoint(buf);
            }

            switch (builder.toString()) {
                case "AC" :
                    ac++;
                    break;
                case "WA":
                    wa++;
                    break;
                case "TLE":
                    tle++;
                    break;
                case "RE":
                    re++;
                    break;
            }
        }

        System.out.println("AC x " + ac);
        System.out.println("WA x " + wa);
        System.out.println("TLE x " + tle);
        System.out.println("RE x " + re);
    }
} import java.io.IOException; IOException java.io public class Main {
    public static void main(String[] args) throws IOException {

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        StringBuilder builder = new StringBuilder();
        int buf;
        while ((buf = System.in.read()) != '\n') {}
        l: while (true) {
            builder.setLength(0);
            while ((buf = System.in.read()) != '\n') {
                if (buf == -1) break l;
                builder.appendCodePoint(buf);
            }

            switch (builder.toString()) {
                case "AC" :
                    ac++;
                    break;
                case "WA":
                    wa++;
                    break;
                case "TLE":
                    tle++;
                    break;
                case "RE":
                    re++;
                    break;
            }
        }

        System.out.println("AC x " + ac);
        System.out.println("WA x " + wa);
        System.out.println("TLE x " + tle);
        System.out.println("RE x " + re);
    }
} Main public static void main(String[] args) throws IOException {

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        StringBuilder builder = new StringBuilder();
        int buf;
        while ((buf = System.in.read()) != '\n') {}
        l: while (true) {
            builder.setLength(0);
            while ((buf = System.in.read()) != '\n') {
                if (buf == -1) break l;
                builder.appendCodePoint(buf);
            }

            switch (builder.toString()) {
                case "AC" :
                    ac++;
                    break;
                case "WA":
                    wa++;
                    break;
                case "TLE":
                    tle++;
                    break;
                case "RE":
                    re++;
                    break;
            }
        }

        System.out.println("AC x " + ac);
        System.out.println("WA x " + wa);
        System.out.println("TLE x " + tle);
        System.out.println("RE x " + re);
    } main {

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        StringBuilder builder = new StringBuilder();
        int buf;
        while ((buf = System.in.read()) != '\n') {}
        l: while (true) {
            builder.setLength(0);
            while ((buf = System.in.read()) != '\n') {
                if (buf == -1) break l;
                builder.appendCodePoint(buf);
            }

            switch (builder.toString()) {
                case "AC" :
                    ac++;
                    break;
                case "WA":
                    wa++;
                    break;
                case "TLE":
                    tle++;
                    break;
                case "RE":
                    re++;
                    break;
            }
        }

        System.out.println("AC x " + ac);
        System.out.println("WA x " + wa);
        System.out.println("TLE x " + tle);
        System.out.println("RE x " + re);
    } int ac = 0; ac 0 int wa = 0; wa 0 int tle = 0; tle 0 int re = 0; re 0 StringBuilder builder = new StringBuilder(); builder new StringBuilder() int buf; buf while ((buf = System.in.read()) != '\n') {} (buf = System.in.read()) != '\n' (buf = System.in.read()) buf System.in.read() System.in.read System.in System System.in '\n' {} System.out.println("AC x " + ac) System.out.println System.out System System.out "AC x " + ac "AC x " ac System.out.println("WA x " + wa) System.out.println System.out System System.out "WA x " + wa "WA x " wa System.out.println("TLE x " + tle) System.out.println System.out System System.out "TLE x " + tle "TLE x " tle System.out.println("RE x " + re) System.out.println System.out System System.out "RE x " + re "RE x " re String[] args args public class Main {
    public static void main(String[] args) throws IOException {

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        StringBuilder builder = new StringBuilder();
        int buf;
        while ((buf = System.in.read()) != '\n') {}
        l: while (true) {
            builder.setLength(0);
            while ((buf = System.in.read()) != '\n') {
                if (buf == -1) break l;
                builder.appendCodePoint(buf);
            }

            switch (builder.toString()) {
                case "AC" :
                    ac++;
                    break;
                case "WA":
                    wa++;
                    break;
                case "TLE":
                    tle++;
                    break;
                case "RE":
                    re++;
                    break;
            }
        }

        System.out.println("AC x " + ac);
        System.out.println("WA x " + wa);
        System.out.println("TLE x " + tle);
        System.out.println("RE x " + re);
    }
} public class Main {
    public static void main(String[] args) throws IOException {

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        StringBuilder builder = new StringBuilder();
        int buf;
        while ((buf = System.in.read()) != '\n') {}
        l: while (true) {
            builder.setLength(0);
            while ((buf = System.in.read()) != '\n') {
                if (buf == -1) break l;
                builder.appendCodePoint(buf);
            }

            switch (builder.toString()) {
                case "AC" :
                    ac++;
                    break;
                case "WA":
                    wa++;
                    break;
                case "TLE":
                    tle++;
                    break;
                case "RE":
                    re++;
                    break;
            }
        }

        System.out.println("AC x " + ac);
        System.out.println("WA x " + wa);
        System.out.println("TLE x " + tle);
        System.out.println("RE x " + re);
    }
} Main
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        StringBuilder builder = new StringBuilder();
        int buf;
        while ((buf = System.in.read()) != '\n') {}
        l: while (true) {
            builder.setLength(0);
            while ((buf = System.in.read()) != '\n') {
                if (buf == -1) break l;
                builder.appendCodePoint(buf);
            }

            switch (builder.toString()) {
                case "AC" :
                    ac++;
                    break;
                case "WA":
                    wa++;
                    break;
                case "TLE":
                    tle++;
                    break;
                case "RE":
                    re++;
                    break;
            }
        }

        System.out.println("AC x " + ac);
        System.out.println("WA x " + wa);
        System.out.println("TLE x " + tle);
        System.out.println("RE x " + re);
    }
}
