import java.util.*;
public class Main
{
    public static void main(String []args)
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int c1=0;
        int c2=0;
        int c3=0;
        int c4=0;
            for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            }
            System.out.println("AC"+" "+"x" +" "+ c1);
            System.out.println("WA"+" "+"x" + " "+c2);
            System.out.println("TLE"+" "+"x" +" " +c3);
            System.out.println("RE"+" "+"x" + " " +c4);
    }
} import java.util.*; util.* java public class Main
{
    public static void main(String []args)
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int c1=0;
        int c2=0;
        int c3=0;
        int c4=0;
            for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            }
            System.out.println("AC"+" "+"x" +" "+ c1);
            System.out.println("WA"+" "+"x" + " "+c2);
            System.out.println("TLE"+" "+"x" +" " +c3);
            System.out.println("RE"+" "+"x" + " " +c4);
    }
} Main public static void main(String []args)
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int c1=0;
        int c2=0;
        int c3=0;
        int c4=0;
            for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            }
            System.out.println("AC"+" "+"x" +" "+ c1);
            System.out.println("WA"+" "+"x" + " "+c2);
            System.out.println("TLE"+" "+"x" +" " +c3);
            System.out.println("RE"+" "+"x" + " " +c4);
    } main {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int c1=0;
        int c2=0;
        int c3=0;
        int c4=0;
            for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            }
            System.out.println("AC"+" "+"x" +" "+ c1);
            System.out.println("WA"+" "+"x" + " "+c2);
            System.out.println("TLE"+" "+"x" +" " +c3);
            System.out.println("RE"+" "+"x" + " " +c4);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int c1=0; c1 0 int c2=0; c2 0 int c3=0; c3 0 int c4=0; c4 0 for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            } int i=0; int i=0; i 0 i<a i a i++ i++ i {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            } {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            } String s=sc.next(); s sc.next() sc.next sc if(s.equals("AC"))
                    c1++; s.equals("AC") s.equals s "AC" c1++ c1 if(s.equals("WA"))
                    c2++; s.equals("WA") s.equals s "WA" c2++ c2 if(s.equals("TLE"))
                    c3++; s.equals("TLE") s.equals s "TLE" c3++ c3 if(s.equals("RE"))
                    c4++; s.equals("RE") s.equals s "RE" c4++ c4 System.out.println("AC"+" "+"x" +" "+ c1) System.out.println System.out System System.out "AC"+" "+"x" +" "+ c1 " " "x" "AC"+" "+"x" +" "+ c1 "AC" " " "x" " " c1 System.out.println("WA"+" "+"x" + " "+c2) System.out.println System.out System System.out "WA"+" "+"x" + " "+c2 " " "x" "WA"+" "+"x" + " "+c2 "WA" " " "x" " " c2 System.out.println("TLE"+" "+"x" +" " +c3) System.out.println System.out System System.out "TLE"+" "+"x" +" " +c3 " " "x" "TLE"+" "+"x" +" " +c3 "TLE" " " "x" " " c3 System.out.println("RE"+" "+"x" + " " +c4) System.out.println System.out System System.out "RE"+" "+"x" + " " +c4 " " "x" "RE"+" "+"x" + " " +c4 "RE" " " "x" " " c4 String []args args public class Main
{
    public static void main(String []args)
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int c1=0;
        int c2=0;
        int c3=0;
        int c4=0;
            for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            }
            System.out.println("AC"+" "+"x" +" "+ c1);
            System.out.println("WA"+" "+"x" + " "+c2);
            System.out.println("TLE"+" "+"x" +" " +c3);
            System.out.println("RE"+" "+"x" + " " +c4);
    }
} public class Main
{
    public static void main(String []args)
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int c1=0;
        int c2=0;
        int c3=0;
        int c4=0;
            for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            }
            System.out.println("AC"+" "+"x" +" "+ c1);
            System.out.println("WA"+" "+"x" + " "+c2);
            System.out.println("TLE"+" "+"x" +" " +c3);
            System.out.println("RE"+" "+"x" + " " +c4);
    }
} Main
import java.util.*;
public class Main
{
    public static void main(String []args)
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int c1=0;
        int c2=0;
        int c3=0;
        int c4=0;
            for(int i=0;i<a;i++)
            {
                String s=sc.next();
                if(s.equals("AC"))
                    c1++;
                if(s.equals("WA"))
                    c2++;
                if(s.equals("TLE"))
                    c3++;
                if(s.equals("RE"))
                    c4++;
            }
            System.out.println("AC"+" "+"x" +" "+ c1);
            System.out.println("WA"+" "+"x" + " "+c2);
            System.out.println("TLE"+" "+"x" +" " +c3);
            System.out.println("RE"+" "+"x" + " " +c4);
    }
}
