import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * abc173-B https://atcoder.jp/contests/abc173/tasks/abc173_b
 * 
 */
public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        }
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        }
    }

} Main public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        } NumberFormatException | IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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 cases = Integer.parseInt(reader.readLine()); cases Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader int ac = 0; ac 0 int wa = 0; wa 0 int tle = 0; tle 0 int re = 0; re 0 while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;

                }
            } cases-- > 0 cases-- cases 0 {
                String input = reader.readLine();
                switch (input) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;

                }
            } String input = reader.readLine(); input reader.readLine() reader.readLine reader switch (input) {
                    case "AC":
                        ac++;
                        break;
                    case "WA":
                        wa++;
                        break;
                    case "TLE":
                        tle++;
                        break;
                    case "RE":
                        re++;
                        break;

                } input 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; 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) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        }
    }

} public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        }
    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * abc173-B https://atcoder.jp/contests/abc173/tasks/abc173_b
 * 
 */
public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            int cases = Integer.parseInt(reader.readLine());
            int ac = 0;
            int wa = 0;
            int tle = 0;
            int re = 0;
            while (cases-- > 0) {
                String input = reader.readLine();
                switch (input) {
                    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);

        } catch (NumberFormatException | IOException e) {
            e.printStackTrace();
        }
    }

}