import java.util.Scanner;

public class Main {

    public static void main(String[] args)
    {
        int AC=0,WA=0,TLE=0,RE=0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        }

        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args)
    {
        int AC=0,WA=0,TLE=0,RE=0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        }

        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }

} Main public static void main(String[] args)
    {
        int AC=0,WA=0,TLE=0,RE=0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        }

        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    } main {
        int AC=0,WA=0,TLE=0,RE=0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        }

        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    } int AC=0 AC 0 WA=0 WA 0 TLE=0 TLE 0 RE=0; RE 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner scanner.nextLine() scanner.nextLine scanner for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        } int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        } {
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        } String x = scanner.nextLine(); x scanner.nextLine() scanner.nextLine scanner if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++; x.equals("AC") x.equals x "AC" AC++ AC if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++; x.equals("WA") x.equals x "WA" WA++ WA if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++; x.equals("TLE") x.equals x "TLE" TLE++ TLE if(x.equals("RE")) RE++; x.equals("RE") x.equals x "RE" RE++ RE System.out.println("AC x " + AC) System.out.println System.out System System.out "AC x " + AC "AC x " AC System.out.println("WA x " + WA) System.out.println System.out System System.out "WA x " + WA "WA x " WA System.out.println("TLE x " + TLE) System.out.println System.out System System.out "TLE x " + TLE "TLE x " TLE System.out.println("RE x " + RE) System.out.println System.out System System.out "RE x " + RE "RE x " RE String[] args args public class Main {

    public static void main(String[] args)
    {
        int AC=0,WA=0,TLE=0,RE=0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        }

        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }

} public class Main {

    public static void main(String[] args)
    {
        int AC=0,WA=0,TLE=0,RE=0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        }

        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args)
    {
        int AC=0,WA=0,TLE=0,RE=0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        for(int i=0 ; i<n ; i++){
            String x = scanner.nextLine();
            if(x.equals("AC")) AC++;
            else if(x.equals("WA")) WA++;
            else if(x.equals("TLE")) TLE++;
            else if(x.equals("RE")) RE++;
        }

        System.out.println("AC x " + AC);
        System.out.println("WA x " + WA);
        System.out.println("TLE x " + TLE);
        System.out.println("RE x " + RE);

    }

}
