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

class Main
{
    public static void main(String[] args) throws IOException{
        // Solution sol = new Solution();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int t = Integer.parseInt(st.nextToken());
        HashMap<String,Integer> hm = new HashMap();
        while(t--!=0) {
            String s = br.readLine();
            hm.put(s,hm.getOrDefault(s, 0)+1);
        }
        String[] sarr = new String[]{"AC","WA","TLE","RE"};

        for(String x: sarr) {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        }


    }

    


    

} import java.util.*; util.* java import java.io.*; io.* java class Main
{
    public static void main(String[] args) throws IOException{
        // Solution sol = new Solution();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int t = Integer.parseInt(st.nextToken());
        HashMap<String,Integer> hm = new HashMap();
        while(t--!=0) {
            String s = br.readLine();
            hm.put(s,hm.getOrDefault(s, 0)+1);
        }
        String[] sarr = new String[]{"AC","WA","TLE","RE"};

        for(String x: sarr) {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        }


    }

    


    

} Main public static void main(String[] args) throws IOException{
        // Solution sol = new Solution();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int t = Integer.parseInt(st.nextToken());
        HashMap<String,Integer> hm = new HashMap();
        while(t--!=0) {
            String s = br.readLine();
            hm.put(s,hm.getOrDefault(s, 0)+1);
        }
        String[] sarr = new String[]{"AC","WA","TLE","RE"};

        for(String x: sarr) {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        }


    } main {
        // Solution sol = new Solution();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int t = Integer.parseInt(st.nextToken());
        HashMap<String,Integer> hm = new HashMap();
        while(t--!=0) {
            String s = br.readLine();
            hm.put(s,hm.getOrDefault(s, 0)+1);
        }
        String[] sarr = new String[]{"AC","WA","TLE","RE"};

        for(String x: sarr) {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        }


    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int t = Integer.parseInt(st.nextToken()); t Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st HashMap<String,Integer> hm = new HashMap(); hm new HashMap() while(t--!=0) {
            String s = br.readLine();
            hm.put(s,hm.getOrDefault(s, 0)+1);
        } t--!=0 t-- t 0 {
            String s = br.readLine();
            hm.put(s,hm.getOrDefault(s, 0)+1);
        } String s = br.readLine(); s br.readLine() br.readLine br hm.put(s,hm.getOrDefault(s, 0)+1) hm.put hm s hm.getOrDefault(s, 0)+1 hm.getOrDefault(s, 0) hm.getOrDefault hm s 0 1 String[] sarr = new String[]{"AC","WA","TLE","RE"}; sarr new String[]{"AC","WA","TLE","RE"} for(String x: sarr) {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        } String x sarr {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        } {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        } System.out.println(x+" x "+hm.getOrDefault(x,0)) System.out.println System.out System System.out x+" x "+hm.getOrDefault(x,0) x+" x "+hm.getOrDefault(x,0) x " x " hm.getOrDefault(x,0) hm.getOrDefault hm x 0 String[] args args
import java.util.*;
import java.io.*;

class Main
{
    public static void main(String[] args) throws IOException{
        // Solution sol = new Solution();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int t = Integer.parseInt(st.nextToken());
        HashMap<String,Integer> hm = new HashMap();
        while(t--!=0) {
            String s = br.readLine();
            hm.put(s,hm.getOrDefault(s, 0)+1);
        }
        String[] sarr = new String[]{"AC","WA","TLE","RE"};

        for(String x: sarr) {
            System.out.println(x+" x "+hm.getOrDefault(x,0));
        }


    }

    


    

}