import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[4];
        for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        }
        System.out.println("AC x " + a[0]);
        System.out.println("WA x " + a[1]);
        System.out.println("TLE x " + a[2]);
        System.out.println("RE x " + a[3]);
    }
 
} import java.util.Scanner; Scanner java.util public class Main {
 
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[4];
        for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        }
        System.out.println("AC x " + a[0]);
        System.out.println("WA x " + a[1]);
        System.out.println("TLE x " + a[2]);
        System.out.println("RE x " + a[3]);
    }
 
} Main public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[4];
        for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        }
        System.out.println("AC x " + a[0]);
        System.out.println("WA x " + a[1]);
        System.out.println("TLE x " + a[2]);
        System.out.println("RE x " + a[3]);
    } main {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[4];
        for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        }
        System.out.println("AC x " + a[0]);
        System.out.println("WA x " + a[1]);
        System.out.println("TLE x " + a[2]);
        System.out.println("RE x " + a[3]);
    } @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[4]; a new int[4] 4 for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        } {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        } String s = sc.next(); s sc.next() sc.next sc if (s.equals("AC")) {
                a[0]++;
            } s.equals("AC") s.equals s "AC" {
                a[0]++;
            } a[0]++ a[0] a 0 if (s.equals("WA")) {
                a[1]++;
            } s.equals("WA") s.equals s "WA" {
                a[1]++;
            } a[1]++ a[1] a 1 if (s.equals("TLE")) {
                a[2]++;
            } s.equals("TLE") s.equals s "TLE" {
                a[2]++;
            } a[2]++ a[2] a 2 if (s.equals("RE")) {
                a[3]++;
            } s.equals("RE") s.equals s "RE" {
                a[3]++;
            } a[3]++ a[3] a 3 System.out.println("AC x " + a[0]) System.out.println System.out System System.out "AC x " + a[0] "AC x " a[0] a 0 System.out.println("WA x " + a[1]) System.out.println System.out System System.out "WA x " + a[1] "WA x " a[1] a 1 System.out.println("TLE x " + a[2]) System.out.println System.out System System.out "TLE x " + a[2] "TLE x " a[2] a 2 System.out.println("RE x " + a[3]) System.out.println System.out System System.out "RE x " + a[3] "RE x " a[3] a 3 String[] args args public class Main {
 
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[4];
        for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        }
        System.out.println("AC x " + a[0]);
        System.out.println("WA x " + a[1]);
        System.out.println("TLE x " + a[2]);
        System.out.println("RE x " + a[3]);
    }
 
} public class Main {
 
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[4];
        for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        }
        System.out.println("AC x " + a[0]);
        System.out.println("WA x " + a[1]);
        System.out.println("TLE x " + a[2]);
        System.out.println("RE x " + a[3]);
    }
 
} Main
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[4];
        for (int i = 0 ; i < n ; i++) {
            String s = sc.next();
            if (s.equals("AC")) {
                a[0]++;
            }
            if (s.equals("WA")) {
                a[1]++;
            }
            if (s.equals("TLE")) {
                a[2]++;
            }
            if (s.equals("RE")) {
                a[3]++;
            }
        }
        System.out.println("AC x " + a[0]);
        System.out.println("WA x " + a[1]);
        System.out.println("TLE x " + a[2]);
        System.out.println("RE x " + a[3]);
    }
 
}