import java.util.*;

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

        Integer N = sc.nextInt();
        Map<String, Integer> judgeCount = new HashMap<>();

        for (int i = 0; i < N; i++){
            String key = sc.next();
            if (judgeCount.containsKey(key)) {
                judgeCount.replace(key, judgeCount.get(key)+1);
            } else {
                judgeCount.put(key, 1);
            }
        }

        System.out.println("AC x " + judgeCount.getOrDefault("AC", 0));
        System.out.println("WA x " + judgeCount.getOrDefault("WA", 0));
        System.out.println("TLE x " + judgeCount.getOrDefault("TLE", 0));
        System.out.println("RE x " + judgeCount.getOrDefault("RE", 0));
    }
} import java.util.*; util.* java public class Main {
    public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);

        Integer N = sc.nextInt();
        Map<String, Integer> judgeCount = new HashMap<>();

        for (int i = 0; i < N; i++){
            String key = sc.next();
            if (judgeCount.containsKey(key)) {
                judgeCount.replace(key, judgeCount.get(key)+1);
            } else {
                judgeCount.put(key, 1);
            }
        }

        System.out.println("AC x " + judgeCount.getOrDefault("AC", 0));
        System.out.println("WA x " + judgeCount.getOrDefault("WA", 0));
        System.out.println("TLE x " + judgeCount.getOrDefault("TLE", 0));
        System.out.println("RE x " + judgeCount.getOrDefault("RE", 0));
    }
} Main public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);

        Integer N = sc.nextInt();
        Map<String, Integer> judgeCount = new HashMap<>();

        for (int i = 0; i < N; i++){
            String key = sc.next();
            if (judgeCount.containsKey(key)) {
                judgeCount.replace(key, judgeCount.get(key)+1);
            } else {
                judgeCount.put(key, 1);
            }
        }

        System.out.println("AC x " + judgeCount.getOrDefault("AC", 0));
        System.out.println("WA x " + judgeCount.getOrDefault("WA", 0));
        System.out.println("TLE x " + judgeCount.getOrDefault("TLE", 0));
        System.out.println("RE x " + judgeCount.getOrDefault("RE", 0));
    } main {
      Scanner sc = new Scanner(System.in);

        Integer N = sc.nextInt();
        Map<String, Integer> judgeCount = new HashMap<>();

        for (int i = 0; i < N; i++){
            String key = sc.next();
            if (judgeCount.containsKey(key)) {
                judgeCount.replace(key, judgeCount.get(key)+1);
            } else {
                judgeCount.put(key, 1);
            }
        }

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

        Integer N = sc.nextInt();
        Map<String, Integer> judgeCount = new HashMap<>();

        for (int i = 0; i < N; i++){
            String key = sc.next();
            if (judgeCount.containsKey(key)) {
                judgeCount.replace(key, judgeCount.get(key)+1);
            } else {
                judgeCount.put(key, 1);
            }
        }

        System.out.println("AC x " + judgeCount.getOrDefault("AC", 0));
        System.out.println("WA x " + judgeCount.getOrDefault("WA", 0));
        System.out.println("TLE x " + judgeCount.getOrDefault("TLE", 0));
        System.out.println("RE x " + judgeCount.getOrDefault("RE", 0));
    }
} public class Main {
    public static void main (String[] args) {
      Scanner sc = new Scanner(System.in);

        Integer N = sc.nextInt();
        Map<String, Integer> judgeCount = new HashMap<>();

        for (int i = 0; i < N; i++){
            String key = sc.next();
            if (judgeCount.containsKey(key)) {
                judgeCount.replace(key, judgeCount.get(key)+1);
            } else {
                judgeCount.put(key, 1);
            }
        }

        System.out.println("AC x " + judgeCount.getOrDefault("AC", 0));
        System.out.println("WA x " + judgeCount.getOrDefault("WA", 0));
        System.out.println("TLE x " + judgeCount.getOrDefault("TLE", 0));
        System.out.println("RE x " + judgeCount.getOrDefault("RE", 0));
    }
} Main
import java.util.*;

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

        Integer N = sc.nextInt();
        Map<String, Integer> judgeCount = new HashMap<>();

        for (int i = 0; i < N; i++){
            String key = sc.next();
            if (judgeCount.containsKey(key)) {
                judgeCount.replace(key, judgeCount.get(key)+1);
            } else {
                judgeCount.put(key, 1);
            }
        }

        System.out.println("AC x " + judgeCount.getOrDefault("AC", 0));
        System.out.println("WA x " + judgeCount.getOrDefault("WA", 0));
        System.out.println("TLE x " + judgeCount.getOrDefault("TLE", 0));
        System.out.println("RE x " + judgeCount.getOrDefault("RE", 0));
    }
}