import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        String[] list = new String[N];
        for(int i=0; i<N; i++){
            list[i] = sc.next();
        }
        int[] array = new int[4];
        for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        }
        String[] ans = {"AC x ","WA x ","TLE x ","RE x " };
        for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        }
    }
} 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[] list = new String[N];
        for(int i=0; i<N; i++){
            list[i] = sc.next();
        }
        int[] array = new int[4];
        for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        }
        String[] ans = {"AC x ","WA x ","TLE x ","RE x " };
        for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        }
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        String[] list = new String[N];
        for(int i=0; i<N; i++){
            list[i] = sc.next();
        }
        int[] array = new int[4];
        for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        }
        String[] ans = {"AC x ","WA x ","TLE x ","RE x " };
        for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        String[] list = new String[N];
        for(int i=0; i<N; i++){
            list[i] = sc.next();
        }
        int[] array = new int[4];
        for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        }
        String[] ans = {"AC x ","WA x ","TLE x ","RE x " };
        for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] list = new String[N]; list new String[N] N for(int i=0; i<N; i++){
            list[i] = sc.next();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            list[i] = sc.next();
        } {
            list[i] = sc.next();
        } list[i] = sc.next() list[i] list i sc.next() sc.next sc int[] array = new int[4]; array new int[4] 4 for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        } String s list {
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        } {
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        } if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            } s.equals("AC") s.equals s "AC" {
                array[0] = array[0]+1;
            } array[0] = array[0]+1 array[0] array 0 array[0]+1 array[0] array 0 1 if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            } s.equals("WA") s.equals s "WA" {
                array[1] = array[1]+1;
            } array[1] = array[1]+1 array[1] array 1 array[1]+1 array[1] array 1 1 if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            } s.equals("TLE") s.equals s "TLE" {
                array[2] = array[2]+1;
            } array[2] = array[2]+1 array[2] array 2 array[2]+1 array[2] array 2 1 if(s.equals("RE")){
                array[3] = array[3]+1;
            } s.equals("RE") s.equals s "RE" {
                array[3] = array[3]+1;
            } array[3] = array[3]+1 array[3] array 3 array[3]+1 array[3] array 3 1 String[] ans = {"AC x ","WA x ","TLE x ","RE x " }; ans {"AC x ","WA x ","TLE x ","RE x " } "AC x " "WA x " "TLE x " "RE x " for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            System.out.println(ans[i] + array[i]);
        } {
            System.out.println(ans[i] + array[i]);
        } System.out.println(ans[i] + array[i]) System.out.println System.out System System.out ans[i] + array[i] ans[i] ans i array[i] array i String args[] args public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        String[] list = new String[N];
        for(int i=0; i<N; i++){
            list[i] = sc.next();
        }
        int[] array = new int[4];
        for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        }
        String[] ans = {"AC x ","WA x ","TLE x ","RE x " };
        for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        }
    }
} public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        String[] list = new String[N];
        for(int i=0; i<N; i++){
            list[i] = sc.next();
        }
        int[] array = new int[4];
        for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        }
        String[] ans = {"AC x ","WA x ","TLE x ","RE x " };
        for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        String[] list = new String[N];
        for(int i=0; i<N; i++){
            list[i] = sc.next();
        }
        int[] array = new int[4];
        for(String s :list){
            if(s.equals("AC")){
                array[0] = array[0]+1;
            }else if(s.equals("WA")){
                array[1] = array[1]+1;
            }else if(s.equals("TLE")){
                array[2] = array[2]+1;
            }else if(s.equals("RE")){
                array[3] = array[3]+1;
            }
        }
        String[] ans = {"AC x ","WA x ","TLE x ","RE x " };
        for(int i=0;i<4; i++){
            System.out.println(ans[i] + array[i]);
        }
    }
}
