import java.util.*;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;

    
    for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  }
}                           import java.util.*; util.* java public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;

    
    for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  }
} Main public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;

    
    for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  } main {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;

    
    for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n  = sc.nextInt(); n sc.nextInt() sc.nextInt sc int b = 0; b 0 int c = 0; c 0 int d = 0; d 0 int e = 0; e 0 for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    } {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    } String str = sc.next(); str sc.next() sc.next sc if(str.equals("AC"))
          b++; str.equals("AC") str.equals str "AC" b++ b if(str.equals("WA"))
    		  {
          c++;
    		  } str.equals("WA") str.equals str "WA" {
          c++;
    		  } c++ c if(str.equals("TLE"))
          d++; str.equals("TLE") str.equals str "TLE" d++ d if(str.equals("RE"))
          e++; str.equals("RE") str.equals str "RE" e++ e System.out.println("AC x "+b) System.out.println System.out System System.out "AC x "+b "AC x " b System.out.println("WA x "+c) System.out.println System.out System System.out "WA x "+c "WA x " c System.out.println("TLE x "+d) System.out.println System.out System System.out "TLE x "+d "TLE x " d System.out.println("RE x "+e) System.out.println System.out System System.out "RE x "+e "RE x " e String[] args args public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;

    
    for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  }
} public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;

    
    for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  }
} Main
import java.util.*;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;

    
    for(int i = 0; i < n; i++)
    {
      String str = sc.next();
      if(str.equals("AC"))
          b++;
      if(str.equals("WA"))
    		  {
          c++;
    		  }
      if(str.equals("TLE"))
          d++;
      if(str.equals("RE"))
          e++;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  }
}                          
