import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        HashMap<String,Integer> hmap=new HashMap<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        }
        pw.println("AC x "+hmap.getOrDefault("AC",0));
        pw.println("WA x "+hmap.getOrDefault("WA",0));
        pw.println("TLE x "+hmap.getOrDefault("TLE",0));
        pw.println("RE x "+hmap.getOrDefault("RE",0));
        pw.flush();
        pw.close();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        HashMap<String,Integer> hmap=new HashMap<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        }
        pw.println("AC x "+hmap.getOrDefault("AC",0));
        pw.println("WA x "+hmap.getOrDefault("WA",0));
        pw.println("TLE x "+hmap.getOrDefault("TLE",0));
        pw.println("RE x "+hmap.getOrDefault("RE",0));
        pw.flush();
        pw.close();
    }
} Main public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        HashMap<String,Integer> hmap=new HashMap<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        }
        pw.println("AC x "+hmap.getOrDefault("AC",0));
        pw.println("WA x "+hmap.getOrDefault("WA",0));
        pw.println("TLE x "+hmap.getOrDefault("TLE",0));
        pw.println("RE x "+hmap.getOrDefault("RE",0));
        pw.flush();
        pw.close();
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        HashMap<String,Integer> hmap=new HashMap<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        }
        pw.println("AC x "+hmap.getOrDefault("AC",0));
        pw.println("WA x "+hmap.getOrDefault("WA",0));
        pw.println("TLE x "+hmap.getOrDefault("TLE",0));
        pw.println("RE x "+hmap.getOrDefault("RE",0));
        pw.flush();
        pw.close();
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter pw=new PrintWriter(System.out); pw new PrintWriter(System.out) int n=Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br HashMap<String,Integer> hmap=new HashMap<>(); hmap new HashMap<>() for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        } {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        } String s=br.readLine(); s br.readLine() br.readLine br hmap.put(s,hmap.getOrDefault(s,0)+1) hmap.put hmap s hmap.getOrDefault(s,0)+1 hmap.getOrDefault(s,0) hmap.getOrDefault hmap s 0 1 pw.println("AC x "+hmap.getOrDefault("AC",0)) pw.println pw "AC x "+hmap.getOrDefault("AC",0) "AC x " hmap.getOrDefault("AC",0) hmap.getOrDefault hmap "AC" 0 pw.println("WA x "+hmap.getOrDefault("WA",0)) pw.println pw "WA x "+hmap.getOrDefault("WA",0) "WA x " hmap.getOrDefault("WA",0) hmap.getOrDefault hmap "WA" 0 pw.println("TLE x "+hmap.getOrDefault("TLE",0)) pw.println pw "TLE x "+hmap.getOrDefault("TLE",0) "TLE x " hmap.getOrDefault("TLE",0) hmap.getOrDefault hmap "TLE" 0 pw.println("RE x "+hmap.getOrDefault("RE",0)) pw.println pw "RE x "+hmap.getOrDefault("RE",0) "RE x " hmap.getOrDefault("RE",0) hmap.getOrDefault hmap "RE" 0 pw.flush() pw.flush pw pw.close() pw.close pw String args[] args public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        HashMap<String,Integer> hmap=new HashMap<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        }
        pw.println("AC x "+hmap.getOrDefault("AC",0));
        pw.println("WA x "+hmap.getOrDefault("WA",0));
        pw.println("TLE x "+hmap.getOrDefault("TLE",0));
        pw.println("RE x "+hmap.getOrDefault("RE",0));
        pw.flush();
        pw.close();
    }
} public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        HashMap<String,Integer> hmap=new HashMap<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        }
        pw.println("AC x "+hmap.getOrDefault("AC",0));
        pw.println("WA x "+hmap.getOrDefault("WA",0));
        pw.println("TLE x "+hmap.getOrDefault("TLE",0));
        pw.println("RE x "+hmap.getOrDefault("RE",0));
        pw.flush();
        pw.close();
    }
} Main
import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw=new PrintWriter(System.out);
        int n=Integer.parseInt(br.readLine());
        HashMap<String,Integer> hmap=new HashMap<>();
        for(int i=0;i<n;i++)
        {
            String s=br.readLine();
            hmap.put(s,hmap.getOrDefault(s,0)+1);
        }
        pw.println("AC x "+hmap.getOrDefault("AC",0));
        pw.println("WA x "+hmap.getOrDefault("WA",0));
        pw.println("TLE x "+hmap.getOrDefault("TLE",0));
        pw.println("RE x "+hmap.getOrDefault("RE",0));
        pw.flush();
        pw.close();
    }
}