import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        
        int N=sc.nextInt();
        int acCount=0;
        int waCount=0;
        int tleCount=0;
        int reCount=0;
        
        String[] moziretu=new String[N];
        
        for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        }
        
        for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        }
        System.out.println("AC x "+acCount);
        System.out.println("WA x "+waCount);
        System.out.println("TLE x "+tleCount);
        System.out.println("RE x "+reCount);
	}
} 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();
        int acCount=0;
        int waCount=0;
        int tleCount=0;
        int reCount=0;
        
        String[] moziretu=new String[N];
        
        for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        }
        
        for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        }
        System.out.println("AC x "+acCount);
        System.out.println("WA x "+waCount);
        System.out.println("TLE x "+tleCount);
        System.out.println("RE x "+reCount);
	}
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        
        int N=sc.nextInt();
        int acCount=0;
        int waCount=0;
        int tleCount=0;
        int reCount=0;
        
        String[] moziretu=new String[N];
        
        for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        }
        
        for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        }
        System.out.println("AC x "+acCount);
        System.out.println("WA x "+waCount);
        System.out.println("TLE x "+tleCount);
        System.out.println("RE x "+reCount);
	} main {
        Scanner sc=new Scanner(System.in);
        
        int N=sc.nextInt();
        int acCount=0;
        int waCount=0;
        int tleCount=0;
        int reCount=0;
        
        String[] moziretu=new String[N];
        
        for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        }
        
        for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        }
        System.out.println("AC x "+acCount);
        System.out.println("WA x "+waCount);
        System.out.println("TLE x "+tleCount);
        System.out.println("RE x "+reCount);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int acCount=0; acCount 0 int waCount=0; waCount 0 int tleCount=0; tleCount 0 int reCount=0; reCount 0 String[] moziretu=new String[N]; moziretu new String[N] N for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            moziretu[i]=sc.next();    
        } {
            moziretu[i]=sc.next();    
        } moziretu[i]=sc.next() moziretu[i] moziretu i sc.next() sc.next sc for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        } int i=0; int i=0; i 0 i<moziretu.length i moziretu.length moziretu moziretu.length i++ i++ i {
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        } {
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        } if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            } moziretu[i].equals("AC") moziretu[i].equals moziretu[i] moziretu i "AC" {
                acCount++;
            } acCount++ acCount if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            } moziretu[i].equals("WA") moziretu[i].equals moziretu[i] moziretu i "WA" {
                waCount++;
            } waCount++ waCount if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            } moziretu[i].equals("TLE") moziretu[i].equals moziretu[i] moziretu i "TLE" {
                tleCount++;
            } tleCount++ tleCount if(moziretu[i].equals("RE")){
                reCount++;
            } moziretu[i].equals("RE") moziretu[i].equals moziretu[i] moziretu i "RE" {
                reCount++;
            } reCount++ reCount System.out.println("AC x "+acCount) System.out.println System.out System System.out "AC x "+acCount "AC x " acCount System.out.println("WA x "+waCount) System.out.println System.out System System.out "WA x "+waCount "WA x " waCount System.out.println("TLE x "+tleCount) System.out.println System.out System System.out "TLE x "+tleCount "TLE x " tleCount System.out.println("RE x "+reCount) System.out.println System.out System System.out "RE x "+reCount "RE x " reCount String[] args args public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        
        int N=sc.nextInt();
        int acCount=0;
        int waCount=0;
        int tleCount=0;
        int reCount=0;
        
        String[] moziretu=new String[N];
        
        for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        }
        
        for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        }
        System.out.println("AC x "+acCount);
        System.out.println("WA x "+waCount);
        System.out.println("TLE x "+tleCount);
        System.out.println("RE x "+reCount);
	}
} public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        
        int N=sc.nextInt();
        int acCount=0;
        int waCount=0;
        int tleCount=0;
        int reCount=0;
        
        String[] moziretu=new String[N];
        
        for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        }
        
        for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        }
        System.out.println("AC x "+acCount);
        System.out.println("WA x "+waCount);
        System.out.println("TLE x "+tleCount);
        System.out.println("RE x "+reCount);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        
        int N=sc.nextInt();
        int acCount=0;
        int waCount=0;
        int tleCount=0;
        int reCount=0;
        
        String[] moziretu=new String[N];
        
        for(int i=0;i<N;i++){
            moziretu[i]=sc.next();    
        }
        
        for(int i=0;i<moziretu.length;i++){
            if(moziretu[i].equals("AC")){
                acCount++;
            }else if(moziretu[i].equals("WA")){
                waCount++;
            }else if(moziretu[i].equals("TLE")){
                tleCount++;
            }else if(moziretu[i].equals("RE")){
                reCount++;
            }
        }
        System.out.println("AC x "+acCount);
        System.out.println("WA x "+waCount);
        System.out.println("TLE x "+tleCount);
        System.out.println("RE x "+reCount);
	}
}