import java.util.Scanner;

public class Main {

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

        int N = sc.nextInt();
        int[] count = new int[4];

        for (int i = 0; i < N; i++ ){
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        }
      
        sc.close();

        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);

        int N = sc.nextInt();
        int[] count = new int[4];

        for (int i = 0; i < N; i++ ){
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        }
      
        sc.close();

        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);

        int N = sc.nextInt();
        int[] count = new int[4];

        for (int i = 0; i < N; i++ ){
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        }
      
        sc.close();

        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);

        int N = sc.nextInt();
        int[] count = new int[4];

        for (int i = 0; i < N; i++ ){
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        }
      
        sc.close();

        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) 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 ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        } {
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        } String ip = sc.next(); ip sc.next() sc.next sc if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            } ip.equals("AC") ip.equals ip "AC" {
                count[0]++;
            } count[0]++ count[0] count 0 if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            } ip.equals("WA") ip.equals ip "WA" {
                count[1]++;
            } count[1]++ count[1] count 1 if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            } ip.equals("TLE") ip.equals ip "TLE" {
                count[2]++;
            } count[2]++ count[2] count 2 if (ip.equals("RE")) {
                count[3]++;
            } ip.equals("RE") ip.equals ip "RE" {
                count[3]++;
            } count[3]++ count[3] count 3 sc.close() sc.close sc 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);

        int N = sc.nextInt();
        int[] count = new int[4];

        for (int i = 0; i < N; i++ ){
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        }
      
        sc.close();

        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);

        int N = sc.nextInt();
        int[] count = new int[4];

        for (int i = 0; i < N; i++ ){
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        }
      
        sc.close();

        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);

        int N = sc.nextInt();
        int[] count = new int[4];

        for (int i = 0; i < N; i++ ){
            String ip = sc.next();
            if (ip.equals("AC")) {
                count[0]++;
            } else if (ip.equals("WA")) {
                count[1]++;
            } else if (ip.equals("TLE")) {
                count[2]++;
            } else if (ip.equals("RE")) {
                count[3]++;
            }
        }
      
        sc.close();

        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]);
    }
}
