
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> answer = new HashMap<>();
        answer.put("AC", 0);
        answer.put("WA", 0);
        answer.put("TLE", 0);
        answer.put("RE", 0);

        for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        }

        System.out.println("AC x " + answer.get("AC"));
        System.out.println("WA x " + answer.get("WA"));
        System.out.println("TLE x " + answer.get("TLE"));
        System.out.println("RE x " + answer.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> answer = new HashMap<>();
        answer.put("AC", 0);
        answer.put("WA", 0);
        answer.put("TLE", 0);
        answer.put("RE", 0);

        for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        }

        System.out.println("AC x " + answer.get("AC"));
        System.out.println("WA x " + answer.get("WA"));
        System.out.println("TLE x " + answer.get("TLE"));
        System.out.println("RE x " + answer.get("RE"));
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Map<String, Integer> answer = new HashMap<>();
        answer.put("AC", 0);
        answer.put("WA", 0);
        answer.put("TLE", 0);
        answer.put("RE", 0);

        for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        }

        System.out.println("AC x " + answer.get("AC"));
        System.out.println("WA x " + answer.get("WA"));
        System.out.println("TLE x " + answer.get("TLE"));
        System.out.println("RE x " + answer.get("RE"));
    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Map<String, Integer> answer = new HashMap<>();
        answer.put("AC", 0);
        answer.put("WA", 0);
        answer.put("TLE", 0);
        answer.put("RE", 0);

        for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        }

        System.out.println("AC x " + answer.get("AC"));
        System.out.println("WA x " + answer.get("WA"));
        System.out.println("TLE x " + answer.get("TLE"));
        System.out.println("RE x " + answer.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> answer = new HashMap<>(); answer new HashMap<>() answer.put("AC", 0) answer.put answer "AC" 0 answer.put("WA", 0) answer.put answer "WA" 0 answer.put("TLE", 0) answer.put answer "TLE" 0 answer.put("RE", 0) answer.put answer "RE" 0 for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        } {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        } String result = scanner.next(); result scanner.next() scanner.next scanner answer.put(result, answer.getOrDefault(result, 0) + 1) answer.put answer result answer.getOrDefault(result, 0) + 1 answer.getOrDefault(result, 0) answer.getOrDefault answer result 0 1 System.out.println("AC x " + answer.get("AC")) System.out.println System.out System System.out "AC x " + answer.get("AC") "AC x " answer.get("AC") answer.get answer "AC" System.out.println("WA x " + answer.get("WA")) System.out.println System.out System System.out "WA x " + answer.get("WA") "WA x " answer.get("WA") answer.get answer "WA" System.out.println("TLE x " + answer.get("TLE")) System.out.println System.out System System.out "TLE x " + answer.get("TLE") "TLE x " answer.get("TLE") answer.get answer "TLE" System.out.println("RE x " + answer.get("RE")) System.out.println System.out System System.out "RE x " + answer.get("RE") "RE x " answer.get("RE") answer.get answer "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> answer = new HashMap<>();
        answer.put("AC", 0);
        answer.put("WA", 0);
        answer.put("TLE", 0);
        answer.put("RE", 0);

        for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        }

        System.out.println("AC x " + answer.get("AC"));
        System.out.println("WA x " + answer.get("WA"));
        System.out.println("TLE x " + answer.get("TLE"));
        System.out.println("RE x " + answer.get("RE"));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        Map<String, Integer> answer = new HashMap<>();
        answer.put("AC", 0);
        answer.put("WA", 0);
        answer.put("TLE", 0);
        answer.put("RE", 0);

        for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        }

        System.out.println("AC x " + answer.get("AC"));
        System.out.println("WA x " + answer.get("WA"));
        System.out.println("TLE x " + answer.get("TLE"));
        System.out.println("RE x " + answer.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> answer = new HashMap<>();
        answer.put("AC", 0);
        answer.put("WA", 0);
        answer.put("TLE", 0);
        answer.put("RE", 0);

        for (int i = 0 ; i < N ; i++) {
            String result = scanner.next();
            answer.put(result, answer.getOrDefault(result, 0) + 1);
        }

        System.out.println("AC x " + answer.get("AC"));
        System.out.println("WA x " + answer.get("WA"));
        System.out.println("TLE x " + answer.get("TLE"));
        System.out.println("RE x " + answer.get("RE"));
    }
}
