import java.util.*; 
import java.io.*;

public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
        HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();

        Judge_Status1.put("AC", 0);
        Judge_Status1.put("WA", 1);
        Judge_Status1.put("TLE", 2);
        Judge_Status1.put("RE", 3);

        Judge_Status2.put(0, "AC");
        Judge_Status2.put(1, "WA");
        Judge_Status2.put(2, "TLE");
        Judge_Status2.put(3, "RE");

        int Map[] = new int[4];

        int N = nextInt();
 
        for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        }

       
        for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        }
        
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

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

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
        HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();

        Judge_Status1.put("AC", 0);
        Judge_Status1.put("WA", 1);
        Judge_Status1.put("TLE", 2);
        Judge_Status1.put("RE", 3);

        Judge_Status2.put(0, "AC");
        Judge_Status2.put(1, "WA");
        Judge_Status2.put(2, "TLE");
        Judge_Status2.put(3, "RE");

        int Map[] = new int[4];

        int N = nextInt();
 
        for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        }

       
        for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        }
        
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

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

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} Main static StringTokenizer st; st static BufferedReader br; br static PrintWriter out; out public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
        HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();

        Judge_Status1.put("AC", 0);
        Judge_Status1.put("WA", 1);
        Judge_Status1.put("TLE", 2);
        Judge_Status1.put("RE", 3);

        Judge_Status2.put(0, "AC");
        Judge_Status2.put(1, "WA");
        Judge_Status2.put(2, "TLE");
        Judge_Status2.put(3, "RE");

        int Map[] = new int[4];

        int N = nextInt();
 
        for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        }

       
        for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        }
        
    } main {
        br = new BufferedReader(new InputStreamReader(System.in));

        HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
        HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();

        Judge_Status1.put("AC", 0);
        Judge_Status1.put("WA", 1);
        Judge_Status1.put("TLE", 2);
        Judge_Status1.put("RE", 3);

        Judge_Status2.put(0, "AC");
        Judge_Status2.put(1, "WA");
        Judge_Status2.put(2, "TLE");
        Judge_Status2.put(3, "RE");

        int Map[] = new int[4];

        int N = nextInt();
 
        for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        }

       
        for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        }
        
    } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>(); Judge_Status1 new HashMap<String, Integer>() HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>(); Judge_Status2 new HashMap<Integer, String>() Judge_Status1.put("AC", 0) Judge_Status1.put Judge_Status1 "AC" 0 Judge_Status1.put("WA", 1) Judge_Status1.put Judge_Status1 "WA" 1 Judge_Status1.put("TLE", 2) Judge_Status1.put Judge_Status1 "TLE" 2 Judge_Status1.put("RE", 3) Judge_Status1.put Judge_Status1 "RE" 3 Judge_Status2.put(0, "AC") Judge_Status2.put Judge_Status2 0 "AC" Judge_Status2.put(1, "WA") Judge_Status2.put Judge_Status2 1 "WA" Judge_Status2.put(2, "TLE") Judge_Status2.put Judge_Status2 2 "TLE" Judge_Status2.put(3, "RE") Judge_Status2.put Judge_Status2 3 "RE" int Map[] = new int[4]; Map new int[4] 4 int N = nextInt(); N nextInt() nextInt for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            Map[Judge_Status1.get(next())] ++;
        } {
            Map[Judge_Status1.get(next())] ++;
        } Map[Judge_Status1.get(next())] ++ Map[Judge_Status1.get(next())] Map Judge_Status1.get(next()) Judge_Status1.get Judge_Status1 next() next for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        } {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        } System.out.println(Judge_Status2.get(i) + " x " + Map[i]) System.out.println System.out System System.out Judge_Status2.get(i) + " x " + Map[i] Judge_Status2.get(i) + " x " + Map[i] Judge_Status2.get(i) Judge_Status2.get Judge_Status2 i " x " Map[i] Map i String[] args args public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    } nextInt {
        return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public static long nextLong() throws IOException {
        return Long.parseLong(next());
    } nextLong {
        return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    } nextDouble {
        return Double.parseDouble(next());
    } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    } next {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    } while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim()); st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st st = new StringTokenizer(br.readLine().trim()) st new StringTokenizer(br.readLine().trim()) return st.nextToken(); st.nextToken() st.nextToken st public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
        HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();

        Judge_Status1.put("AC", 0);
        Judge_Status1.put("WA", 1);
        Judge_Status1.put("TLE", 2);
        Judge_Status1.put("RE", 3);

        Judge_Status2.put(0, "AC");
        Judge_Status2.put(1, "WA");
        Judge_Status2.put(2, "TLE");
        Judge_Status2.put(3, "RE");

        int Map[] = new int[4];

        int N = nextInt();
 
        for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        }

       
        for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        }
        
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

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

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
        HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();

        Judge_Status1.put("AC", 0);
        Judge_Status1.put("WA", 1);
        Judge_Status1.put("TLE", 2);
        Judge_Status1.put("RE", 3);

        Judge_Status2.put(0, "AC");
        Judge_Status2.put(1, "WA");
        Judge_Status2.put(2, "TLE");
        Judge_Status2.put(3, "RE");

        int Map[] = new int[4];

        int N = nextInt();
 
        for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        }

       
        for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        }
        
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

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

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} Main
import java.util.*; 
import java.io.*;

public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
        HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();

        Judge_Status1.put("AC", 0);
        Judge_Status1.put("WA", 1);
        Judge_Status1.put("TLE", 2);
        Judge_Status1.put("RE", 3);

        Judge_Status2.put(0, "AC");
        Judge_Status2.put(1, "WA");
        Judge_Status2.put(2, "TLE");
        Judge_Status2.put(3, "RE");

        int Map[] = new int[4];

        int N = nextInt();
 
        for (int i=0; i<N; i++) {
            Map[Judge_Status1.get(next())] ++;
        }

       
        for (int i=0; i<4; i++) {
            System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
        }
        
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

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

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
}
