/*package whatever //do not write package name here */

import java.util.*;

public class Main {
	public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
 String[] arr=new String[n];
      for(int i=0;i<n;i++)
        arr[i]=sc.next();
  int acc=0,wac=0,tlec=0,rec=0;
      for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      }
      System.out.println("AC x "+acc);
        System.out.println("WA x "+wac);
        System.out.println("TLE x "+tlec);
        System.out.println("RE x "+rec);
	}
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
 String[] arr=new String[n];
      for(int i=0;i<n;i++)
        arr[i]=sc.next();
  int acc=0,wac=0,tlec=0,rec=0;
      for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      }
      System.out.println("AC x "+acc);
        System.out.println("WA x "+wac);
        System.out.println("TLE x "+tlec);
        System.out.println("RE x "+rec);
	}
} Main public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
 String[] arr=new String[n];
      for(int i=0;i<n;i++)
        arr[i]=sc.next();
  int acc=0,wac=0,tlec=0,rec=0;
      for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      }
      System.out.println("AC x "+acc);
        System.out.println("WA x "+wac);
        System.out.println("TLE x "+tlec);
        System.out.println("RE x "+rec);
	} main {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
 String[] arr=new String[n];
      for(int i=0;i<n;i++)
        arr[i]=sc.next();
  int acc=0,wac=0,tlec=0,rec=0;
      for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      }
      System.out.println("AC x "+acc);
        System.out.println("WA x "+wac);
        System.out.println("TLE x "+tlec);
        System.out.println("RE x "+rec);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] arr=new String[n]; arr new String[n] n for(int i=0;i<n;i++)
        arr[i]=sc.next(); int i=0; int i=0; i 0 i<n i n i++ i++ i arr[i]=sc.next(); arr[i]=sc.next() arr[i] arr i sc.next() sc.next sc int acc=0 acc 0 wac=0 wac 0 tlec=0 tlec 0 rec=0; rec 0 for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      } {
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      } if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 } arr[i].equals("AC") arr[i].equals arr[i] arr i "AC" {
      acc++;
      } acc++ acc if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 } arr[i].equals("WA") arr[i].equals arr[i] arr i "WA" {
         wac++;
         } wac++ wac if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 } arr[i].equals("TLE") arr[i].equals arr[i] arr i "TLE" {
            tlec++;
            } tlec++ tlec {
                 rec++;
                 } rec++ rec System.out.println("AC x "+acc) System.out.println System.out System System.out "AC x "+acc "AC x " acc System.out.println("WA x "+wac) System.out.println System.out System System.out "WA x "+wac "WA x " wac System.out.println("TLE x "+tlec) System.out.println System.out System System.out "TLE x "+tlec "TLE x " tlec System.out.println("RE x "+rec) System.out.println System.out System System.out "RE x "+rec "RE x " rec String[] args args public class Main {
	public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
 String[] arr=new String[n];
      for(int i=0;i<n;i++)
        arr[i]=sc.next();
  int acc=0,wac=0,tlec=0,rec=0;
      for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      }
      System.out.println("AC x "+acc);
        System.out.println("WA x "+wac);
        System.out.println("TLE x "+tlec);
        System.out.println("RE x "+rec);
	}
} public class Main {
	public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
 String[] arr=new String[n];
      for(int i=0;i<n;i++)
        arr[i]=sc.next();
  int acc=0,wac=0,tlec=0,rec=0;
      for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      }
      System.out.println("AC x "+acc);
        System.out.println("WA x "+wac);
        System.out.println("TLE x "+tlec);
        System.out.println("RE x "+rec);
	}
} Main
/*package whatever //do not write package name here */

import java.util.*;

public class Main {
	public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
 String[] arr=new String[n];
      for(int i=0;i<n;i++)
        arr[i]=sc.next();
  int acc=0,wac=0,tlec=0,rec=0;
      for(int i=0;i<n;i++){
      if(arr[i].equals("AC")){
      acc++;
      }
         else if(arr[i].equals("WA")){
         wac++;
         }
            else  if(arr[i].equals("TLE")){
            tlec++;
            }
                 else{
                 rec++;
                 }
         
      
      }
      System.out.println("AC x "+acc);
        System.out.println("WA x "+wac);
        System.out.println("TLE x "+tlec);
        System.out.println("RE x "+rec);
	}
}