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

public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (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 ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

} Main public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (IOException e) {
            e.printStackTrace();
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (IOException e) {
            e.printStackTrace();
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } int ncount = Integer.parseInt(reader.readLine()); ncount Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader int cnt_AC = 0; cnt_AC 0 int cnt_WA = 0; cnt_WA 0 int cnt_TLE = 0; cnt_TLE 0 int cnt_RE = 0; cnt_RE 0 String result; result while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            } ncount != 0 ncount 0 {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            } result = reader.readLine() result reader.readLine() reader.readLine reader ncount-- ncount switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                } result case "AC": "AC" case "AC": cnt_AC++ cnt_AC break; case "WA": "WA" case "WA": cnt_WA++ cnt_WA break; case "TLE": "TLE" case "TLE": cnt_TLE++ cnt_TLE break; case "RE": "RE" case "RE": cnt_RE++ cnt_RE reader.close() reader.close reader System.out.println("AC x " + cnt_AC) System.out.println System.out System System.out "AC x " + cnt_AC "AC x " cnt_AC System.out.println("WA x " + cnt_WA) System.out.println System.out System System.out "WA x " + cnt_WA "WA x " cnt_WA System.out.println("TLE x " + cnt_TLE) System.out.println System.out System System.out "TLE x " + cnt_TLE "TLE x " cnt_TLE System.out.println("RE x " + cnt_RE) System.out.println System.out System System.out "RE x " + cnt_RE "RE x " cnt_RE String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

} public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

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

public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        try {
            int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 Ｎ
            int cnt_AC = 0;
            int cnt_WA = 0;
            int cnt_TLE = 0;
            int cnt_RE = 0;
            String result;
            while (ncount != 0) {
                result = reader.readLine();
                ncount--;
                switch (result) {

                case "AC":
                    cnt_AC++;
                    break;

                case "WA":
                    cnt_WA++;
                    break;

                case "TLE":
                    cnt_TLE++;
                    break;

                case "RE":
                    cnt_RE++;
                }

            }
            reader.close();
            System.out.println("AC x " + cnt_AC);
            System.out.println("WA x " + cnt_WA);
            System.out.println("TLE x " + cnt_TLE);
            System.out.println("RE x " + cnt_RE);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}