import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
       	int N = sc.nextInt();
        //String[] results = new String[N];
        int a=0,t=0,w=0,r=0;
      	for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	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 public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
       	int N = sc.nextInt();
        //String[] results = new String[N];
        int a=0,t=0,w=0,r=0;
      	for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	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){
    	Scanner sc = new Scanner(System.in);
       	int N = sc.nextInt();
        //String[] results = new String[N];
        int a=0,t=0,w=0,r=0;
      	for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	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 sc = new Scanner(System.in);
       	int N = sc.nextInt();
        //String[] results = new String[N];
        int a=0,t=0,w=0,r=0;
      	for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	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 sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int a=0 a 0 t=0 t 0 w=0 w 0 r=0; r 0 for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	r++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	r++;
            }
        } {
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	r++;
            }
        } String temp=sc.next(); temp sc.next() sc.next sc if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	r++;
            } temp.equals("AC") temp.equals temp "AC" {
            	a++;
            } a++ a if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	r++;
            } temp.equals("WA") temp.equals temp "WA" {
            	w++;
            } w++ w if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	r++;
            } temp.equals("TLE") temp.equals temp "TLE" {
            	t++;
            } t++ t if(temp.equals("RE")){
            	r++;
            } temp.equals("RE") temp.equals temp "RE" {
            	r++;
            } r++ r System.out.println("AC"+ " x "+ a) System.out.println System.out System System.out "AC"+ " x "+ a "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 "WA" " x " w System.out.println("TLE"+ " x "+ t) System.out.println System.out System System.out "TLE"+ " x "+ t "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 "RE" " x " r String[] args args public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
       	int N = sc.nextInt();
        //String[] results = new String[N];
        int a=0,t=0,w=0,r=0;
      	for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	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){
    	Scanner sc = new Scanner(System.in);
       	int N = sc.nextInt();
        //String[] results = new String[N];
        int a=0,t=0,w=0,r=0;
      	for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	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.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
       	int N = sc.nextInt();
        //String[] results = new String[N];
        int a=0,t=0,w=0,r=0;
      	for(int i=0;i<N;i++){
        	String temp=sc.next();
            if(temp.equals("AC")){
            	a++;
            }
            else if(temp.equals("WA")){
            	w++;
            }
          	else if(temp.equals("TLE")){
            	t++;
            }
          	else if(temp.equals("RE")){
            	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);
      
    }
}