import java.util.Scanner;

public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        final int N = sc.nextInt();
        
        int[] count = new int[4];
        
        for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        }
        System.out.println("AC x " + count[0]);
        System.out.println("WA x " + count[1]);
        System.out.println("TLE x " + count[2]);
        System.out.println("RE x " + count[3]);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        final int N = sc.nextInt();
        
        int[] count = new int[4];
        
        for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        }
        System.out.println("AC x " + count[0]);
        System.out.println("WA x " + count[1]);
        System.out.println("TLE x " + count[2]);
        System.out.println("RE x " + count[3]);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        final int N = sc.nextInt();
        
        int[] count = new int[4];
        
        for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        }
        System.out.println("AC x " + count[0]);
        System.out.println("WA x " + count[1]);
        System.out.println("TLE x " + count[2]);
        System.out.println("RE x " + count[3]);
    } main {
        Scanner sc = new Scanner(System.in);
        
        final int N = sc.nextInt();
        
        int[] count = new int[4];
        
        for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        }
        System.out.println("AC x " + count[0]);
        System.out.println("WA x " + count[1]);
        System.out.println("TLE x " + count[2]);
        System.out.println("RE x " + count[3]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] count = new int[4]; count new int[4] 4 for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        } {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        } String j = sc.next(); j sc.next() sc.next sc switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            } j case "AC": "AC" case "AC": count[0]++ count[0] count 0 break; case "WA": "WA" case "WA": count[1]++ count[1] count 1 break; case "TLE": "TLE" case "TLE": count[2]++ count[2] count 2 break; case "RE": "RE" case "RE": count[3]++ count[3] count 3 break; System.out.println("AC x " + count[0]) System.out.println System.out System System.out "AC x " + count[0] "AC x " count[0] count 0 System.out.println("WA x " + count[1]) System.out.println System.out System System.out "WA x " + count[1] "WA x " count[1] count 1 System.out.println("TLE x " + count[2]) System.out.println System.out System System.out "TLE x " + count[2] "TLE x " count[2] count 2 System.out.println("RE x " + count[3]) System.out.println System.out System System.out "RE x " + count[3] "RE x " count[3] count 3 String[] args args public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        final int N = sc.nextInt();
        
        int[] count = new int[4];
        
        for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        }
        System.out.println("AC x " + count[0]);
        System.out.println("WA x " + count[1]);
        System.out.println("TLE x " + count[2]);
        System.out.println("RE x " + count[3]);
    }
} public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        final int N = sc.nextInt();
        
        int[] count = new int[4];
        
        for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        }
        System.out.println("AC x " + count[0]);
        System.out.println("WA x " + count[1]);
        System.out.println("TLE x " + count[2]);
        System.out.println("RE x " + count[3]);
    }
} Main
import java.util.Scanner;

public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        final int N = sc.nextInt();
        
        int[] count = new int[4];
        
        for (int i = 0; i < N; i++) {
            String j = sc.next();
            
            switch (j) {
            case "AC":
                count[0]++;
                break;
            case "WA":
                count[1]++;
                break;
            case "TLE":
                count[2]++;
                break;
            case "RE":
                count[3]++;
                break;
            }
        }
        System.out.println("AC x " + count[0]);
        System.out.println("WA x " + count[1]);
        System.out.println("TLE x " + count[2]);
        System.out.println("RE x " + count[3]);
    }
}
