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



/* Name of the class has to be "Main" only if the class is public. */



public class Main
{
     
     
     
   
    
public static void main (String[] args) throws java.lang.Exception
{Scanner scn = new Scanner(System.in) ;
  int n = scn.nextInt() ;
 int a = 0 ; int t = 0 ; int r= 0 ; int w =  0;
 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 }
 
 System.out.println("AC x " + a ) ;
System.out.println("WA x " + w) ;
System.out.println("TLE x " + t) ; 
System.out.println("RE x " + r) ;
              
              
}
}




              
              import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
     
     
     
   
    
public static void main (String[] args) throws java.lang.Exception
{Scanner scn = new Scanner(System.in) ;
  int n = scn.nextInt() ;
 int a = 0 ; int t = 0 ; int r= 0 ; int w =  0;
 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 }
 
 System.out.println("AC x " + a ) ;
System.out.println("WA x " + w) ;
System.out.println("TLE x " + t) ; 
System.out.println("RE x " + r) ;
              
              
}
} Main public static void main (String[] args) throws java.lang.Exception
{Scanner scn = new Scanner(System.in) ;
  int n = scn.nextInt() ;
 int a = 0 ; int t = 0 ; int r= 0 ; int w =  0;
 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 }
 
 System.out.println("AC x " + a ) ;
System.out.println("WA x " + w) ;
System.out.println("TLE x " + t) ; 
System.out.println("RE x " + r) ;
              
              
} main {Scanner scn = new Scanner(System.in) ;
  int n = scn.nextInt() ;
 int a = 0 ; int t = 0 ; int r= 0 ; int w =  0;
 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 }
 
 System.out.println("AC x " + a ) ;
System.out.println("WA x " + w) ;
System.out.println("TLE x " + t) ; 
System.out.println("RE x " + r) ;
              
              
} Scanner scn = new Scanner(System.in) ; scn new Scanner(System.in) int n = scn.nextInt() ; n scn.nextInt() scn.nextInt scn int a = 0 ; a 0 int t = 0 ; t 0 int r= 0 ; r 0 int w =  0; w 0 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 } int k = 1; int k = 1; k 1 k <= n k n k++ k++ k {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 } {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 } String str =  scn.next() ; str scn.next() scn.next scn if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      } str.equals("AC") str.equals str "AC" {
        a++ ;
      } a++ a if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      } str.equals("WA") str.equals str "WA" {
        w++ ;
      } w++ w if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      } str.equals("TLE") str.equals str "TLE" {
        t++ ;
      } t++ t {
        r++ ;
      } r++ r System.out.println("AC x " + a ) System.out.println System.out System System.out "AC x " + a "AC x " a System.out.println("WA x " + w) System.out.println System.out System System.out "WA x " + w "WA x " w System.out.println("TLE x " + t) System.out.println System.out System System.out "TLE x " + t "TLE x " t System.out.println("RE x " + r) System.out.println System.out System System.out "RE x " + r "RE x " r String[] args args public class Main
{
     
     
     
   
    
public static void main (String[] args) throws java.lang.Exception
{Scanner scn = new Scanner(System.in) ;
  int n = scn.nextInt() ;
 int a = 0 ; int t = 0 ; int r= 0 ; int w =  0;
 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 }
 
 System.out.println("AC x " + a ) ;
System.out.println("WA x " + w) ;
System.out.println("TLE x " + t) ; 
System.out.println("RE x " + r) ;
              
              
}
} public class Main
{
     
     
     
   
    
public static void main (String[] args) throws java.lang.Exception
{Scanner scn = new Scanner(System.in) ;
  int n = scn.nextInt() ;
 int a = 0 ; int t = 0 ; int r= 0 ; int w =  0;
 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 }
 
 System.out.println("AC x " + a ) ;
System.out.println("WA x " + w) ;
System.out.println("TLE x " + t) ; 
System.out.println("RE x " + r) ;
              
              
}
} Main

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



/* Name of the class has to be "Main" only if the class is public. */



public class Main
{
     
     
     
   
    
public static void main (String[] args) throws java.lang.Exception
{Scanner scn = new Scanner(System.in) ;
  int n = scn.nextInt() ;
 int a = 0 ; int t = 0 ; int r= 0 ; int w =  0;
 for(int k = 1; k <= n ; k++ )
 {
   String str =  scn.next() ;
   
   if(str.equals("AC"))
      {
        a++ ;
      }
   else if(str.equals("WA"))
      {
        w++ ;
      }
      else if(str.equals("TLE"))
      {
        t++ ;
      }
        
      else         
      {
        r++ ;
      }
   
 }
 
 System.out.println("AC x " + a ) ;
System.out.println("WA x " + w) ;
System.out.println("TLE x " + t) ; 
System.out.println("RE x " + r) ;
              
              
}
}




              
             