import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        }
        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.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        }
        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 input = new Scanner(System.in);
        int n = input.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        }
        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 input = new Scanner(System.in);
        int n = input.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        }
        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 input = new Scanner(System.in); input new Scanner(System.in) int n = input.nextInt(); n input.nextInt() input.nextInt input Map<String, Integer> map = new HashMap<>(); map new HashMap<>() for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        } {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        } String testCase = input.next(); testCase input.next() input.next input map.put(testCase, map.getOrDefault(testCase, 0) + 1) map.put map testCase map.getOrDefault(testCase, 0) + 1 map.getOrDefault(testCase, 0) map.getOrDefault map testCase 0 1 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 input = new Scanner(System.in);
        int n = input.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        }
        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 input = new Scanner(System.in);
        int n = input.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        }
        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.*;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            String testCase = input.next();
            map.put(testCase, map.getOrDefault(testCase, 0) + 1);
        }
        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));
    }
}