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


class Main {

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

        int n = Integer.parseInt(br.readLine());
        HashMap<String , Integer> hm = new HashMap<>();
        for(int i = 0 ; i < n ; i++)
        {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        }
        out.println("AC x " + hm.getOrDefault("AC" , 0) );
        out.println("WA x "  + hm.getOrDefault("WA" , 0));
        out.println("TLE x " + hm.getOrDefault("TLE" , 0) );
        out.println("RE x " + hm.getOrDefault("RE" , 0) );

        out.flush();
        out.close();

    }

    static class pair{
        long x1;
        long x2;

        public pair(long x1 , long x2)
        {
            this.x1 = x1;
            this.x2 = x2;
        }

    }

} import java.util.*; util.* java import java.io.*; io.* java class Main {

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

        int n = Integer.parseInt(br.readLine());
        HashMap<String , Integer> hm = new HashMap<>();
        for(int i = 0 ; i < n ; i++)
        {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        }
        out.println("AC x " + hm.getOrDefault("AC" , 0) );
        out.println("WA x "  + hm.getOrDefault("WA" , 0));
        out.println("TLE x " + hm.getOrDefault("TLE" , 0) );
        out.println("RE x " + hm.getOrDefault("RE" , 0) );

        out.flush();
        out.close();

    }

    static class pair{
        long x1;
        long x2;

        public pair(long x1 , long x2)
        {
            this.x1 = x1;
            this.x2 = x2;
        }

    }

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

        int n = Integer.parseInt(br.readLine());
        HashMap<String , Integer> hm = new HashMap<>();
        for(int i = 0 ; i < n ; i++)
        {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        }
        out.println("AC x " + hm.getOrDefault("AC" , 0) );
        out.println("WA x "  + hm.getOrDefault("WA" , 0));
        out.println("TLE x " + hm.getOrDefault("TLE" , 0) );
        out.println("RE x " + hm.getOrDefault("RE" , 0) );

        out.flush();
        out.close();

    } main {
        PrintWriter out = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());
        HashMap<String , Integer> hm = new HashMap<>();
        for(int i = 0 ; i < n ; i++)
        {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        }
        out.println("AC x " + hm.getOrDefault("AC" , 0) );
        out.println("WA x "  + hm.getOrDefault("WA" , 0));
        out.println("TLE x " + hm.getOrDefault("TLE" , 0) );
        out.println("RE x " + hm.getOrDefault("RE" , 0) );

        out.flush();
        out.close();

    } PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br HashMap<String , Integer> hm = new HashMap<>(); hm new HashMap<>() for(int i = 0 ; i < n ; i++)
        {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        } {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        } String ss = br.readLine(); ss br.readLine() br.readLine br hm.put(ss , hm.getOrDefault(ss , 0)+1) hm.put hm ss hm.getOrDefault(ss , 0)+1 hm.getOrDefault(ss , 0) hm.getOrDefault hm ss 0 1 out.println("AC x " + hm.getOrDefault("AC" , 0) ) out.println out "AC x " + hm.getOrDefault("AC" , 0) "AC x " hm.getOrDefault("AC" , 0) hm.getOrDefault hm "AC" 0 out.println("WA x "  + hm.getOrDefault("WA" , 0)) out.println out "WA x "  + hm.getOrDefault("WA" , 0) "WA x " hm.getOrDefault("WA" , 0) hm.getOrDefault hm "WA" 0 out.println("TLE x " + hm.getOrDefault("TLE" , 0) ) out.println out "TLE x " + hm.getOrDefault("TLE" , 0) "TLE x " hm.getOrDefault("TLE" , 0) hm.getOrDefault hm "TLE" 0 out.println("RE x " + hm.getOrDefault("RE" , 0) ) out.println out "RE x " + hm.getOrDefault("RE" , 0) "RE x " hm.getOrDefault("RE" , 0) hm.getOrDefault hm "RE" 0 out.flush() out.flush out out.close() out.close out String[] args args static class pair{
        long x1;
        long x2;

        public pair(long x1 , long x2)
        {
            this.x1 = x1;
            this.x2 = x2;
        }

    } pair long x1; x1 long x2; x2 public pair(long x1 , long x2)
        {
            this.x1 = x1;
            this.x2 = x2;
        } pair {
            this.x1 = x1;
            this.x2 = x2;
        } this.x1 = x1 this.x1 this this.x1 x1 this.x2 = x2 this.x2 this this.x2 x2 long x1 x1 long x2 x2
import java.util.*;
import java.io.*;


class Main {

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

        int n = Integer.parseInt(br.readLine());
        HashMap<String , Integer> hm = new HashMap<>();
        for(int i = 0 ; i < n ; i++)
        {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        }
        out.println("AC x " + hm.getOrDefault("AC" , 0) );
        out.println("WA x "  + hm.getOrDefault("WA" , 0));
        out.println("TLE x " + hm.getOrDefault("TLE" , 0) );
        out.println("RE x " + hm.getOrDefault("RE" , 0) );

        out.flush();
        out.close();

    }

    static class pair{
        long x1;
        long x2;

        public pair(long x1 , long x2)
        {
            this.x1 = x1;
            this.x2 = x2;
        }

    }

}
