import java.util.Scanner;

public class Main {
    static int c0=0;
    static int c1=0;
    static int c2=0;
    static int c3=0;


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

        while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        }

        System.out.println("AC x " + c0);
        System.out.println("WA x " + c1);
        System.out.println("TLE x "+ c2);
        System.out.println("RE x "+ c3);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static int c0=0;
    static int c1=0;
    static int c2=0;
    static int c3=0;


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

        while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        }

        System.out.println("AC x " + c0);
        System.out.println("WA x " + c1);
        System.out.println("TLE x "+ c2);
        System.out.println("RE x "+ c3);
    }
} Main static int c0=0; c0 0 static int c1=0; c1 0 static int c2=0; c2 0 static int c3=0; c3 0 public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int testCases = sc.nextInt();

        while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        }

        System.out.println("AC x " + c0);
        System.out.println("WA x " + c1);
        System.out.println("TLE x "+ c2);
        System.out.println("RE x "+ c3);
    } main {
        Scanner sc = new Scanner(System.in);
        int testCases = sc.nextInt();

        while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        }

        System.out.println("AC x " + c0);
        System.out.println("WA x " + c1);
        System.out.println("TLE x "+ c2);
        System.out.println("RE x "+ c3);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int testCases = sc.nextInt(); testCases sc.nextInt() sc.nextInt sc while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        } testCases-- >= 0 testCases-- testCases 0 {
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        } String input = sc.nextLine(); input sc.nextLine() sc.nextLine sc if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++; input.equals("AC") input.equals input "AC" c0++ c0 if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++; input.equals("WA") input.equals input "WA" c1++ c1 if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++; input.equals("TLE") input.equals input "TLE" c2++ c2 if(input.equals("RE"))
                c3++; input.equals("RE") input.equals input "RE" c3++ c3 System.out.println("AC x " + c0) System.out.println System.out System System.out "AC x " + c0 "AC x " c0 System.out.println("WA x " + c1) System.out.println System.out System System.out "WA x " + c1 "WA x " c1 System.out.println("TLE x "+ c2) System.out.println System.out System System.out "TLE x "+ c2 "TLE x " c2 System.out.println("RE x "+ c3) System.out.println System.out System System.out "RE x "+ c3 "RE x " c3 String[] args args public class Main {
    static int c0=0;
    static int c1=0;
    static int c2=0;
    static int c3=0;


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

        while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        }

        System.out.println("AC x " + c0);
        System.out.println("WA x " + c1);
        System.out.println("TLE x "+ c2);
        System.out.println("RE x "+ c3);
    }
} public class Main {
    static int c0=0;
    static int c1=0;
    static int c2=0;
    static int c3=0;


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

        while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        }

        System.out.println("AC x " + c0);
        System.out.println("WA x " + c1);
        System.out.println("TLE x "+ c2);
        System.out.println("RE x "+ c3);
    }
} Main
import java.util.Scanner;

public class Main {
    static int c0=0;
    static int c1=0;
    static int c2=0;
    static int c3=0;


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

        while(testCases-- >= 0){
            String input = sc.nextLine();

            if(input.equals("AC"))
                c0++;
            else if(input.equals("WA"))
                c1++;
            else if(input.equals("TLE"))
                c2++;
            else if(input.equals("RE"))
                c3++;
        }

        System.out.println("AC x " + c0);
        System.out.println("WA x " + c1);
        System.out.println("TLE x "+ c2);
        System.out.println("RE x "+ c3);
    }
}
