import java.util.*;
import java.io.*;
import java.math.*;
 
 
public class Main
{
    public static void main(String[] args) 
    { 
          Scanner input=new Scanner(System.in);
          int i = input.nextInt();
        //   String s = input.next();
        // int count =0;
        // int i=1000;
        int c1=0,c2=0,c3=0,c4=0;
          while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          }
          
          
          System.out.println("AC x "+ c1);
          System.out.println("WA x "+ c2);
          System.out.println("TLE x "+ c3);
          System.out.println("RE x "+ c4);
          
          
      
            
          input.close(); 
     } 
     
} import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java public class Main
{
    public static void main(String[] args) 
    { 
          Scanner input=new Scanner(System.in);
          int i = input.nextInt();
        //   String s = input.next();
        // int count =0;
        // int i=1000;
        int c1=0,c2=0,c3=0,c4=0;
          while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          }
          
          
          System.out.println("AC x "+ c1);
          System.out.println("WA x "+ c2);
          System.out.println("TLE x "+ c3);
          System.out.println("RE x "+ c4);
          
          
      
            
          input.close(); 
     } 
     
} Main public static void main(String[] args) 
    { 
          Scanner input=new Scanner(System.in);
          int i = input.nextInt();
        //   String s = input.next();
        // int count =0;
        // int i=1000;
        int c1=0,c2=0,c3=0,c4=0;
          while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          }
          
          
          System.out.println("AC x "+ c1);
          System.out.println("WA x "+ c2);
          System.out.println("TLE x "+ c3);
          System.out.println("RE x "+ c4);
          
          
      
            
          input.close(); 
     } main { 
          Scanner input=new Scanner(System.in);
          int i = input.nextInt();
        //   String s = input.next();
        // int count =0;
        // int i=1000;
        int c1=0,c2=0,c3=0,c4=0;
          while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          }
          
          
          System.out.println("AC x "+ c1);
          System.out.println("WA x "+ c2);
          System.out.println("TLE x "+ c3);
          System.out.println("RE x "+ c4);
          
          
      
            
          input.close(); 
     } Scanner input=new Scanner(System.in); input new Scanner(System.in) int i = input.nextInt(); i input.nextInt() input.nextInt input int c1=0 c1 0 c2=0 c2 0 c3=0 c3 0 c4=0; c4 0 while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          } i>0 i 0 {
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          } String s = input.next(); s input.next() input.next input if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++; s.equals("AC") s.equals s "AC" c1++ c1 if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++; s.equals("WA") s.equals s "WA" c2++ c2 if(s.equals("TLE"))
             c3++;
             else
             c4++; s.equals("TLE") s.equals s "TLE" c3++ c3 c4++ c4 i-- i System.out.println("AC x "+ c1) System.out.println System.out System System.out "AC x "+ c1 "AC x " c1 System.out.println("WA x "+ c2) System.out.println System.out System System.out "WA x "+ c2 "WA x " c2 System.out.println("TLE x "+ c3) System.out.println System.out System System.out "TLE x "+ c3 "TLE x " c3 System.out.println("RE x "+ c4) System.out.println System.out System System.out "RE x "+ c4 "RE x " c4 input.close() input.close input String[] args args public class Main
{
    public static void main(String[] args) 
    { 
          Scanner input=new Scanner(System.in);
          int i = input.nextInt();
        //   String s = input.next();
        // int count =0;
        // int i=1000;
        int c1=0,c2=0,c3=0,c4=0;
          while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          }
          
          
          System.out.println("AC x "+ c1);
          System.out.println("WA x "+ c2);
          System.out.println("TLE x "+ c3);
          System.out.println("RE x "+ c4);
          
          
      
            
          input.close(); 
     } 
     
} public class Main
{
    public static void main(String[] args) 
    { 
          Scanner input=new Scanner(System.in);
          int i = input.nextInt();
        //   String s = input.next();
        // int count =0;
        // int i=1000;
        int c1=0,c2=0,c3=0,c4=0;
          while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          }
          
          
          System.out.println("AC x "+ c1);
          System.out.println("WA x "+ c2);
          System.out.println("TLE x "+ c3);
          System.out.println("RE x "+ c4);
          
          
      
            
          input.close(); 
     } 
     
} Main
import java.util.*;
import java.io.*;
import java.math.*;
 
 
public class Main
{
    public static void main(String[] args) 
    { 
          Scanner input=new Scanner(System.in);
          int i = input.nextInt();
        //   String s = input.next();
        // int count =0;
        // int i=1000;
        int c1=0,c2=0,c3=0,c4=0;
          while(i>0){
             String s = input.next();
             
             if(s.equals("AC"))
             c1++;
             else if(s.equals("WA"))
             c2++;
             else if(s.equals("TLE"))
             c3++;
             else
             c4++;
             i--;
          }
          
          
          System.out.println("AC x "+ c1);
          System.out.println("WA x "+ c2);
          System.out.println("TLE x "+ c3);
          System.out.println("RE x "+ c4);
          
          
      
            
          input.close(); 
     } 
     
}