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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Map<String, Integer> cnt = new HashMap<>();
        cnt.put("AC", 0);
        cnt.put("WA", 0);
        cnt.put("TLE", 0);
        cnt.put("RE", 0);
        scanner.nextLine();
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        }
        System.out.println("AC x "+cnt.get("AC"));
        System.out.println("WA x "+cnt.get("WA"));
        System.out.println("TLE x "+cnt.get("TLE"));
        System.out.println("RE x "+cnt.get("RE"));
    }
} 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 scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Map<String, Integer> cnt = new HashMap<>();
        cnt.put("AC", 0);
        cnt.put("WA", 0);
        cnt.put("TLE", 0);
        cnt.put("RE", 0);
        scanner.nextLine();
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        }
        System.out.println("AC x "+cnt.get("AC"));
        System.out.println("WA x "+cnt.get("WA"));
        System.out.println("TLE x "+cnt.get("TLE"));
        System.out.println("RE x "+cnt.get("RE"));
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Map<String, Integer> cnt = new HashMap<>();
        cnt.put("AC", 0);
        cnt.put("WA", 0);
        cnt.put("TLE", 0);
        cnt.put("RE", 0);
        scanner.nextLine();
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        }
        System.out.println("AC x "+cnt.get("AC"));
        System.out.println("WA x "+cnt.get("WA"));
        System.out.println("TLE x "+cnt.get("TLE"));
        System.out.println("RE x "+cnt.get("RE"));
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Map<String, Integer> cnt = new HashMap<>();
        cnt.put("AC", 0);
        cnt.put("WA", 0);
        cnt.put("TLE", 0);
        cnt.put("RE", 0);
        scanner.nextLine();
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        }
        System.out.println("AC x "+cnt.get("AC"));
        System.out.println("WA x "+cnt.get("WA"));
        System.out.println("TLE x "+cnt.get("TLE"));
        System.out.println("RE x "+cnt.get("RE"));
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner Map<String, Integer> cnt = new HashMap<>(); cnt new HashMap<>() cnt.put("AC", 0) cnt.put cnt "AC" 0 cnt.put("WA", 0) cnt.put cnt "WA" 0 cnt.put("TLE", 0) cnt.put cnt "TLE" 0 cnt.put("RE", 0) cnt.put cnt "RE" 0 scanner.nextLine() scanner.nextLine scanner for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        } {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        } String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner cnt.put(s, cnt.get(s) + 1) cnt.put cnt s cnt.get(s) + 1 cnt.get(s) cnt.get cnt s 1 System.out.println("AC x "+cnt.get("AC")) System.out.println System.out System System.out "AC x "+cnt.get("AC") "AC x " cnt.get("AC") cnt.get cnt "AC" System.out.println("WA x "+cnt.get("WA")) System.out.println System.out System System.out "WA x "+cnt.get("WA") "WA x " cnt.get("WA") cnt.get cnt "WA" System.out.println("TLE x "+cnt.get("TLE")) System.out.println System.out System System.out "TLE x "+cnt.get("TLE") "TLE x " cnt.get("TLE") cnt.get cnt "TLE" System.out.println("RE x "+cnt.get("RE")) System.out.println System.out System System.out "RE x "+cnt.get("RE") "RE x " cnt.get("RE") cnt.get cnt "RE" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Map<String, Integer> cnt = new HashMap<>();
        cnt.put("AC", 0);
        cnt.put("WA", 0);
        cnt.put("TLE", 0);
        cnt.put("RE", 0);
        scanner.nextLine();
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        }
        System.out.println("AC x "+cnt.get("AC"));
        System.out.println("WA x "+cnt.get("WA"));
        System.out.println("TLE x "+cnt.get("TLE"));
        System.out.println("RE x "+cnt.get("RE"));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Map<String, Integer> cnt = new HashMap<>();
        cnt.put("AC", 0);
        cnt.put("WA", 0);
        cnt.put("TLE", 0);
        cnt.put("RE", 0);
        scanner.nextLine();
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        }
        System.out.println("AC x "+cnt.get("AC"));
        System.out.println("WA x "+cnt.get("WA"));
        System.out.println("TLE x "+cnt.get("TLE"));
        System.out.println("RE x "+cnt.get("RE"));
    }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Map<String, Integer> cnt = new HashMap<>();
        cnt.put("AC", 0);
        cnt.put("WA", 0);
        cnt.put("TLE", 0);
        cnt.put("RE", 0);
        scanner.nextLine();
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            cnt.put(s, cnt.get(s) + 1);
        }
        System.out.println("AC x "+cnt.get("AC"));
        System.out.println("WA x "+cnt.get("WA"));
        System.out.println("TLE x "+cnt.get("TLE"));
        System.out.println("RE x "+cnt.get("RE"));
    }
}