import java.util.*;
import java.util.Scanner;
import java.lang.*;

public class Main
{
  public static void main(String args[])
  {
    try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    }
  }
}
      
   
     import java.util.*; util.* java import java.util.Scanner; Scanner java.util import java.lang.*; lang.* java public class Main
{
  public static void main(String args[])
  {
    try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    }
  }
} Main public static void main(String args[])
  {
    try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    }
  } main {
    try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    }
  } try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    } catch(Exception e)
    {
      return ;
    } Exception e {
      return ;
    } return ; {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    } int n n rem=0 rem 0 res=0 res 0 a=0 a 0 r=0 r 0 w=0 w 0 t=0; t 0 Scanner s=new Scanner(System.in); s new Scanner(System.in) n=s.nextInt() n s.nextInt() s.nextInt s String str; str for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    } {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    } str=s.next() str s.next() s.next s if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      } str.charAt(0)=='A' str.charAt(0) str.charAt str 0 'A' {
        a++;
      } a++ a if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      } str.charAt(0)=='W' str.charAt(0) str.charAt str 0 'W' {
        w++;
      } w++ w if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      } str.charAt(0)=='T' str.charAt(0) str.charAt str 0 'T' {
        t++;
      } t++ t if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      } str.charAt(0)=='R' str.charAt(0) str.charAt str 0 'R' {
        r++;
      } r++ r {
        continue;
      } continue; 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[])
  {
    try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    }
  }
} public class Main
{
  public static void main(String args[])
  {
    try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    }
  }
} Main
import java.util.*;
import java.util.Scanner;
import java.lang.*;

public class Main
{
  public static void main(String args[])
  {
    try
    {
    int n,rem=0,res=0,a=0,r=0,w=0,t=0;
    Scanner s=new Scanner(System.in);
    n=s.nextInt();
    String str;  
    for(int i=0;i<n;i++)  
    {
      str=s.next();
      if(str.charAt(0)=='A') 
      {
        a++;
      }
      else if(str.charAt(0)=='W') 
      {
        w++;
      }
      else if(str.charAt(0)=='T') 
      {
        t++;
      }
      else if(str.charAt(0)=='R') 
      {
        r++;
      }
      else
      {
        continue;
      }
    }
      
      System.out.println("AC x "+a);
      System.out.println("WA x "+w);
	 System.out.println("TLE x "+t);
	 System.out.println("RE x "+r);


      
      
      
      
      
   
  //    System.out.println(res);
    }
    catch(Exception e)
    {
      return ;
    }
  }
}
      
   
    