import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        }
        System.out.println("AC x " + map.getOrDefault("AC", 0));
        System.out.println("WA x " + map.getOrDefault("WA", 0));
        System.out.println("TLE x " + map.getOrDefault("TLE", 0));
        System.out.println("RE x " + map.getOrDefault("RE", 0));
    }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        }
        System.out.println("AC x " + map.getOrDefault("AC", 0));
        System.out.println("WA x " + map.getOrDefault("WA", 0));
        System.out.println("TLE x " + map.getOrDefault("TLE", 0));
        System.out.println("RE x " + map.getOrDefault("RE", 0));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        }
        System.out.println("AC x " + map.getOrDefault("AC", 0));
        System.out.println("WA x " + map.getOrDefault("WA", 0));
        System.out.println("TLE x " + map.getOrDefault("TLE", 0));
        System.out.println("RE x " + map.getOrDefault("RE", 0));
    } main {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        }
        System.out.println("AC x " + map.getOrDefault("AC", 0));
        System.out.println("WA x " + map.getOrDefault("WA", 0));
        System.out.println("TLE x " + map.getOrDefault("TLE", 0));
        System.out.println("RE x " + map.getOrDefault("RE", 0));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc Map<String, Integer> map = new HashMap<>(); map new HashMap<>() while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        } s > 0 s 0 {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        } String a = sc.next(); a sc.next() sc.next sc if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            } map.containsKey(a) map.containsKey map a {
                map.put(a, map.get(a) + 1);
            } map.put(a, map.get(a) + 1) map.put map a map.get(a) + 1 map.get(a) map.get map a 1 {
                map.put(a, 1);
            } map.put(a, 1) map.put map a 1 s-- s System.out.println("AC x " + map.getOrDefault("AC", 0)) System.out.println System.out System System.out "AC x " + map.getOrDefault("AC", 0) "AC x " map.getOrDefault("AC", 0) map.getOrDefault map "AC" 0 System.out.println("WA x " + map.getOrDefault("WA", 0)) System.out.println System.out System System.out "WA x " + map.getOrDefault("WA", 0) "WA x " map.getOrDefault("WA", 0) map.getOrDefault map "WA" 0 System.out.println("TLE x " + map.getOrDefault("TLE", 0)) System.out.println System.out System System.out "TLE x " + map.getOrDefault("TLE", 0) "TLE x " map.getOrDefault("TLE", 0) map.getOrDefault map "TLE" 0 System.out.println("RE x " + map.getOrDefault("RE", 0)) System.out.println System.out System System.out "RE x " + map.getOrDefault("RE", 0) "RE x " map.getOrDefault("RE", 0) map.getOrDefault map "RE" 0 String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        }
        System.out.println("AC x " + map.getOrDefault("AC", 0));
        System.out.println("WA x " + map.getOrDefault("WA", 0));
        System.out.println("TLE x " + map.getOrDefault("TLE", 0));
        System.out.println("RE x " + map.getOrDefault("RE", 0));
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        }
        System.out.println("AC x " + map.getOrDefault("AC", 0));
        System.out.println("WA x " + map.getOrDefault("WA", 0));
        System.out.println("TLE x " + map.getOrDefault("TLE", 0));
        System.out.println("RE x " + map.getOrDefault("RE", 0));
    }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Map<String, Integer> map = new HashMap<>();
        while (s > 0) {
            String a = sc.next();
            if (map.containsKey(a)) {
                map.put(a, map.get(a) + 1);
            } else {
                map.put(a, 1);
            }
            s--;
        }
        System.out.println("AC x " + map.getOrDefault("AC", 0));
        System.out.println("WA x " + map.getOrDefault("WA", 0));
        System.out.println("TLE x " + map.getOrDefault("TLE", 0));
        System.out.println("RE x " + map.getOrDefault("RE", 0));
    }
}