import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//データ数
      	String[] result=new String[n];
      	int count_Ac=0;
      	int count_Wa=0;
      	int count_Tle=0;
      	int count_Re=0;
      	
    	for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	}
     	

      
      	
        System.out.println("AC x "+count_Ac); 
        System.out.println("WA x "+count_Wa); 
        System.out.println("TLE x "+count_Tle); 
        System.out.println("RE x "+count_Re);       
    } 
}












 import java.util.Scanner; Scanner java.util public class Main {
 
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//データ数
      	String[] result=new String[n];
      	int count_Ac=0;
      	int count_Wa=0;
      	int count_Tle=0;
      	int count_Re=0;
      	
    	for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	}
     	

      
      	
        System.out.println("AC x "+count_Ac); 
        System.out.println("WA x "+count_Wa); 
        System.out.println("TLE x "+count_Tle); 
        System.out.println("RE x "+count_Re);       
    } 
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//データ数
      	String[] result=new String[n];
      	int count_Ac=0;
      	int count_Wa=0;
      	int count_Tle=0;
      	int count_Re=0;
      	
    	for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	}
     	

      
      	
        System.out.println("AC x "+count_Ac); 
        System.out.println("WA x "+count_Wa); 
        System.out.println("TLE x "+count_Tle); 
        System.out.println("RE x "+count_Re);       
    } main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//データ数
      	String[] result=new String[n];
      	int count_Ac=0;
      	int count_Wa=0;
      	int count_Tle=0;
      	int count_Re=0;
      	
    	for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	}
     	

      
      	
        System.out.println("AC x "+count_Ac); 
        System.out.println("WA x "+count_Wa); 
        System.out.println("TLE x "+count_Tle); 
        System.out.println("RE x "+count_Re);       
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] result=new String[n]; result new String[n] n int count_Ac=0; count_Ac 0 int count_Wa=0; count_Wa 0 int count_Tle=0; count_Tle 0 int count_Re=0; count_Re 0 for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	} {
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	} result[i]=sc.next() result[i] result i sc.next() sc.next sc if(result[i].equals("AC")){
            	count_Ac+=1;
            } result[i].equals("AC") result[i].equals result[i] result i "AC" {
            	count_Ac+=1;
            } count_Ac+=1 count_Ac 1 if(result[i].equals("WA")){
            	count_Wa+=1;
            } result[i].equals("WA") result[i].equals result[i] result i "WA" {
            	count_Wa+=1;
            } count_Wa+=1 count_Wa 1 if(result[i].equals("TLE")){
            	count_Tle+=1;
            } result[i].equals("TLE") result[i].equals result[i] result i "TLE" {
            	count_Tle+=1;
            } count_Tle+=1 count_Tle 1 if(result[i].equals("RE")){
            	count_Re+=1;
            } result[i].equals("RE") result[i].equals result[i] result i "RE" {
            	count_Re+=1;
            } count_Re+=1 count_Re 1 System.out.println("AC x "+count_Ac) System.out.println System.out System System.out "AC x "+count_Ac "AC x " count_Ac System.out.println("WA x "+count_Wa) System.out.println System.out System System.out "WA x "+count_Wa "WA x " count_Wa System.out.println("TLE x "+count_Tle) System.out.println System.out System System.out "TLE x "+count_Tle "TLE x " count_Tle System.out.println("RE x "+count_Re) System.out.println System.out System System.out "RE x "+count_Re "RE x " count_Re String[] args args public class Main {
 
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//データ数
      	String[] result=new String[n];
      	int count_Ac=0;
      	int count_Wa=0;
      	int count_Tle=0;
      	int count_Re=0;
      	
    	for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	}
     	

      
      	
        System.out.println("AC x "+count_Ac); 
        System.out.println("WA x "+count_Wa); 
        System.out.println("TLE x "+count_Tle); 
        System.out.println("RE x "+count_Re);       
    } 
} public class Main {
 
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//データ数
      	String[] result=new String[n];
      	int count_Ac=0;
      	int count_Wa=0;
      	int count_Tle=0;
      	int count_Re=0;
      	
    	for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	}
     	

      
      	
        System.out.println("AC x "+count_Ac); 
        System.out.println("WA x "+count_Wa); 
        System.out.println("TLE x "+count_Tle); 
        System.out.println("RE x "+count_Re);       
    } 
} Main
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//データ数
      	String[] result=new String[n];
      	int count_Ac=0;
      	int count_Wa=0;
      	int count_Tle=0;
      	int count_Re=0;
      	
    	for(int i=0;i<n;i++){
			result[i]=sc.next();
          
            if(result[i].equals("AC")){
            	count_Ac+=1;
            }
         	if(result[i].equals("WA")){
            	count_Wa+=1;
            }
            if(result[i].equals("TLE")){
            	count_Tle+=1;
            }
         	if(result[i].equals("RE")){
            	count_Re+=1;
            }          
    
      	}
     	

      
      	
        System.out.println("AC x "+count_Ac); 
        System.out.println("WA x "+count_Wa); 
        System.out.println("TLE x "+count_Tle); 
        System.out.println("RE x "+count_Re);       
    } 
}













