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

 public class Main{
  
 public static void main(String args[]){
   
  Scanner s = new Scanner(System.in);
   
   int x =s.nextInt();
  s.nextLine();
   int ac=0,wa=0,tle=0,re=0;
   while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   }
   
   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
 }
  
} import java.io.*; io.* java import java.lang.*; lang.* java import java.util.*; util.* java public class Main{
  
 public static void main(String args[]){
   
  Scanner s = new Scanner(System.in);
   
   int x =s.nextInt();
  s.nextLine();
   int ac=0,wa=0,tle=0,re=0;
   while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   }
   
   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
 }
  
} Main public static void main(String args[]){
   
  Scanner s = new Scanner(System.in);
   
   int x =s.nextInt();
  s.nextLine();
   int ac=0,wa=0,tle=0,re=0;
   while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   }
   
   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
 } main {
   
  Scanner s = new Scanner(System.in);
   
   int x =s.nextInt();
  s.nextLine();
   int ac=0,wa=0,tle=0,re=0;
   while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   }
   
   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
 } Scanner s = new Scanner(System.in); s new Scanner(System.in) int x =s.nextInt(); x s.nextInt() s.nextInt s s.nextLine() s.nextLine s int ac=0 ac 0 wa=0 wa 0 tle=0 tle 0 re=0; re 0 while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   } x-- >0 x-- x 0 {
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   } String g = s.nextLine(); g s.nextLine() s.nextLine s if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++; g.equals("AC") g.equals g "AC" ac++ ac if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++; g.equals("WA") g.equals g "WA" wa++ wa if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++; g.equals("TLE") g.equals g "TLE" tle++ tle if(g.equals("RE"))
       re++; g.equals("RE") g.equals g "RE" re++ re System.out.println("AC x "+ac) System.out.println System.out System System.out "AC x "+ac "AC x " ac System.out.println("WA x "+wa) System.out.println System.out System System.out "WA x "+wa "WA x " wa System.out.println("TLE x "+tle) System.out.println System.out System System.out "TLE x "+tle "TLE x " tle System.out.println("RE x "+re) System.out.println System.out System System.out "RE x "+re "RE x " re String args[] args public class Main{
  
 public static void main(String args[]){
   
  Scanner s = new Scanner(System.in);
   
   int x =s.nextInt();
  s.nextLine();
   int ac=0,wa=0,tle=0,re=0;
   while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   }
   
   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
 }
  
} public class Main{
  
 public static void main(String args[]){
   
  Scanner s = new Scanner(System.in);
   
   int x =s.nextInt();
  s.nextLine();
   int ac=0,wa=0,tle=0,re=0;
   while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   }
   
   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
 }
  
} Main
import java.io.*;
import java.lang.*;
import java.util.*;

 public class Main{
  
 public static void main(String args[]){
   
  Scanner s = new Scanner(System.in);
   
   int x =s.nextInt();
  s.nextLine();
   int ac=0,wa=0,tle=0,re=0;
   while(x-- >0){
       String g = s.nextLine();
     if(g.equals("AC"))
       ac++;
     else if(g.equals("WA"))
       wa++;
     else if(g.equals("TLE"))
       tle++;
     else if(g.equals("RE"))
       re++;
         
   }
   
   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
 }
  
}