import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {

    //Fast Reader
        private static class FastReader {
            BufferedReader br;
            StringTokenizer st;

            public FastReader() {
                br = new BufferedReader(new InputStreamReader(System.in));
            }

            public String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

            public void resetST() {
                st = null;
            }

            public int nextInt() {
                return Integer.parseInt(next());
            }

            public long nextLong() {
                return Long.parseLong(next());
            }

            public double nextDouble() {
                return Double.parseDouble(next());
            }

            public float nextFloat() {
                return Float.parseFloat(next());
            }

            public String nextLine() {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            }

            public int[] nextIntArray(int size) {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            }

            public long[] nextLongArray(int size) {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            }

            public double[] nextDoubleArray(int size) {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            }
        }
    public static void main(String[] args)
    {
        FastReader sc =new FastReader();
        PrintWriter pr =new PrintWriter(System.out);
        int n=sc.nextInt();
        int ac=0;
        int wa=0;
        int re=0;
        int tle=0;
        for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        }
        pr.println("AC x "+ac);
        pr.println("WA x "+wa);
        pr.println("TLE x "+tle);
        pr.println("RE x "+re);
        pr.close();
	// write your code here
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {

    //Fast Reader
        private static class FastReader {
            BufferedReader br;
            StringTokenizer st;

            public FastReader() {
                br = new BufferedReader(new InputStreamReader(System.in));
            }

            public String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

            public void resetST() {
                st = null;
            }

            public int nextInt() {
                return Integer.parseInt(next());
            }

            public long nextLong() {
                return Long.parseLong(next());
            }

            public double nextDouble() {
                return Double.parseDouble(next());
            }

            public float nextFloat() {
                return Float.parseFloat(next());
            }

            public String nextLine() {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            }

            public int[] nextIntArray(int size) {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            }

            public long[] nextLongArray(int size) {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            }

            public double[] nextDoubleArray(int size) {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            }
        }
    public static void main(String[] args)
    {
        FastReader sc =new FastReader();
        PrintWriter pr =new PrintWriter(System.out);
        int n=sc.nextInt();
        int ac=0;
        int wa=0;
        int re=0;
        int tle=0;
        for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        }
        pr.println("AC x "+ac);
        pr.println("WA x "+wa);
        pr.println("TLE x "+tle);
        pr.println("RE x "+re);
        pr.close();
	// write your code here
    }
} Main public static void main(String[] args)
    {
        FastReader sc =new FastReader();
        PrintWriter pr =new PrintWriter(System.out);
        int n=sc.nextInt();
        int ac=0;
        int wa=0;
        int re=0;
        int tle=0;
        for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        }
        pr.println("AC x "+ac);
        pr.println("WA x "+wa);
        pr.println("TLE x "+tle);
        pr.println("RE x "+re);
        pr.close();
	// write your code here
    } main {
        FastReader sc =new FastReader();
        PrintWriter pr =new PrintWriter(System.out);
        int n=sc.nextInt();
        int ac=0;
        int wa=0;
        int re=0;
        int tle=0;
        for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        }
        pr.println("AC x "+ac);
        pr.println("WA x "+wa);
        pr.println("TLE x "+tle);
        pr.println("RE x "+re);
        pr.close();
	// write your code here
    } FastReader sc =new FastReader(); sc new FastReader() PrintWriter pr =new PrintWriter(System.out); pr new PrintWriter(System.out) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int ac=0; ac 0 int wa=0; wa 0 int re=0; re 0 int tle=0; tle 0 for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        } {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        } String s=sc.nextLine(); s sc.nextLine() sc.nextLine sc if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++; s.equals("AC") s.equals s "AC" ac+=1 ac 1 if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++; s.equals("WA") s.equals s "WA" wa+=1 wa 1 if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++; s.equals("TLE") s.equals s "TLE" tle++ tle if(s.equals("RE"))
                re++; s.equals("RE") s.equals s "RE" re++ re pr.println("AC x "+ac) pr.println pr "AC x "+ac "AC x " ac pr.println("WA x "+wa) pr.println pr "WA x "+wa "WA x " wa pr.println("TLE x "+tle) pr.println pr "TLE x "+tle "TLE x " tle pr.println("RE x "+re) pr.println pr "RE x "+re "RE x " re pr.close() pr.close pr String[] args args     private static class FastReader {
            BufferedReader br;
            StringTokenizer st;

            public FastReader() {
                br = new BufferedReader(new InputStreamReader(System.in));
            }

            public String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

            public void resetST() {
                st = null;
            }

            public int nextInt() {
                return Integer.parseInt(next());
            }

            public long nextLong() {
                return Long.parseLong(next());
            }

            public double nextDouble() {
                return Double.parseDouble(next());
            }

            public float nextFloat() {
                return Float.parseFloat(next());
            }

            public String nextLine() {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            }

            public int[] nextIntArray(int size) {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            }

            public long[] nextLongArray(int size) {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            }

            public double[] nextDoubleArray(int size) {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            }
        } FastReader BufferedReader br; br StringTokenizer st; st public FastReader() {
                br = new BufferedReader(new InputStreamReader(System.in));
            } FastReader {
                br = new BufferedReader(new InputStreamReader(System.in));
            } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) public String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            } next {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            } while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                } try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    } catch (IOException e) {
                        e.printStackTrace();
                    } IOException e {
                        e.printStackTrace();
                    } e.printStackTrace() e.printStackTrace e {
                        st = new StringTokenizer(br.readLine());
                    } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st public void resetST() {
                st = null;
            } resetST {
                st = null;
            } st = null st null public int nextInt() {
                return Integer.parseInt(next());
            } nextInt {
                return Integer.parseInt(next());
            } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() {
                return Long.parseLong(next());
            } nextLong {
                return Long.parseLong(next());
            } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public double nextDouble() {
                return Double.parseDouble(next());
            } nextDouble {
                return Double.parseDouble(next());
            } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public float nextFloat() {
                return Float.parseFloat(next());
            } nextFloat {
                return Float.parseFloat(next());
            } return Float.parseFloat(next()); Float.parseFloat(next()) Float.parseFloat Float next() next public String nextLine() {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            } nextLine {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            } String str = ""; str "" try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    str = br.readLine();
                } str = br.readLine() str br.readLine() br.readLine br st = null st null return str; str public int[] nextIntArray(int size) {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            } nextIntArray {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            } int[] arr = new int[size]; arr new int[size] size for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                } int i = 0; int i = 0; i 0 i < size i size i++ i++ i {
                    arr[i] = nextInt();
                } {
                    arr[i] = nextInt();
                } arr[i] = nextInt() arr[i] arr i nextInt() nextInt return arr; arr int size size public long[] nextLongArray(int size) {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            } nextLongArray {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            } long[] arr = new long[size]; arr new long[size] size for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                } int i = 0; int i = 0; i 0 i < size i size i++ i++ i {
                    arr[i] = nextLong();
                } {
                    arr[i] = nextLong();
                } arr[i] = nextLong() arr[i] arr i nextLong() nextLong return arr; arr int size size public double[] nextDoubleArray(int size) {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            } nextDoubleArray {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            } double[] arr = new double[size]; arr new double[size] size for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                } int i = 0; int i = 0; i 0 i < size i size i++ i++ i {
                    arr[i] = nextDouble();
                } {
                    arr[i] = nextDouble();
                } arr[i] = nextDouble() arr[i] arr i nextDouble() nextDouble return arr; arr int size size public class Main {

    //Fast Reader
        private static class FastReader {
            BufferedReader br;
            StringTokenizer st;

            public FastReader() {
                br = new BufferedReader(new InputStreamReader(System.in));
            }

            public String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

            public void resetST() {
                st = null;
            }

            public int nextInt() {
                return Integer.parseInt(next());
            }

            public long nextLong() {
                return Long.parseLong(next());
            }

            public double nextDouble() {
                return Double.parseDouble(next());
            }

            public float nextFloat() {
                return Float.parseFloat(next());
            }

            public String nextLine() {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            }

            public int[] nextIntArray(int size) {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            }

            public long[] nextLongArray(int size) {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            }

            public double[] nextDoubleArray(int size) {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            }
        }
    public static void main(String[] args)
    {
        FastReader sc =new FastReader();
        PrintWriter pr =new PrintWriter(System.out);
        int n=sc.nextInt();
        int ac=0;
        int wa=0;
        int re=0;
        int tle=0;
        for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        }
        pr.println("AC x "+ac);
        pr.println("WA x "+wa);
        pr.println("TLE x "+tle);
        pr.println("RE x "+re);
        pr.close();
	// write your code here
    }
} public class Main {

    //Fast Reader
        private static class FastReader {
            BufferedReader br;
            StringTokenizer st;

            public FastReader() {
                br = new BufferedReader(new InputStreamReader(System.in));
            }

            public String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

            public void resetST() {
                st = null;
            }

            public int nextInt() {
                return Integer.parseInt(next());
            }

            public long nextLong() {
                return Long.parseLong(next());
            }

            public double nextDouble() {
                return Double.parseDouble(next());
            }

            public float nextFloat() {
                return Float.parseFloat(next());
            }

            public String nextLine() {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            }

            public int[] nextIntArray(int size) {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            }

            public long[] nextLongArray(int size) {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            }

            public double[] nextDoubleArray(int size) {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            }
        }
    public static void main(String[] args)
    {
        FastReader sc =new FastReader();
        PrintWriter pr =new PrintWriter(System.out);
        int n=sc.nextInt();
        int ac=0;
        int wa=0;
        int re=0;
        int tle=0;
        for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        }
        pr.println("AC x "+ac);
        pr.println("WA x "+wa);
        pr.println("TLE x "+tle);
        pr.println("RE x "+re);
        pr.close();
	// write your code here
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {

    //Fast Reader
        private static class FastReader {
            BufferedReader br;
            StringTokenizer st;

            public FastReader() {
                br = new BufferedReader(new InputStreamReader(System.in));
            }

            public String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

            public void resetST() {
                st = null;
            }

            public int nextInt() {
                return Integer.parseInt(next());
            }

            public long nextLong() {
                return Long.parseLong(next());
            }

            public double nextDouble() {
                return Double.parseDouble(next());
            }

            public float nextFloat() {
                return Float.parseFloat(next());
            }

            public String nextLine() {
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                st = null;
                return str;
            }

            public int[] nextIntArray(int size) {
                int[] arr = new int[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextInt();
                }
                return arr;
            }

            public long[] nextLongArray(int size) {
                long[] arr = new long[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextLong();
                }
                return arr;
            }

            public double[] nextDoubleArray(int size) {
                double[] arr = new double[size];
                for (int i = 0; i < size; i++) {
                    arr[i] = nextDouble();
                }
                return arr;
            }
        }
    public static void main(String[] args)
    {
        FastReader sc =new FastReader();
        PrintWriter pr =new PrintWriter(System.out);
        int n=sc.nextInt();
        int ac=0;
        int wa=0;
        int re=0;
        int tle=0;
        for (int i=0;i<n;i++)
        {
            String s=sc.nextLine();
            if(s.equals("AC"))
                ac+=1;
            else if(s.equals("WA"))
                wa+=1;
            else if(s.equals("TLE"))
                tle++;
            else if(s.equals("RE"))
                re++;
        }
        pr.println("AC x "+ac);
        pr.println("WA x "+wa);
        pr.println("TLE x "+tle);
        pr.println("RE x "+re);
        pr.close();
	// write your code here
    }
}
