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 n = sc.nextInt();
        Map countMap = new HashMap<String, Integer>();
        countMap.put("AC", 0);
        countMap.put("WA", 0);
        countMap.put("TLE", 0);
        countMap.put("RE", 0);

        for (int i = 1; i <= n; i++) {
            String s = sc.next();
            if ("AC".equals(s)) {
                countMap.put("AC", Integer.parseInt(countMap.get("AC").toString()) + 1);
            } else if ("WA".equals(s)) {
                countMap.put("WA", Integer.parseInt(countMap.get("WA").toString()) + 1);
            } else if ("TLE".equals(s)) {
                countMap.put("TLE", Integer.parseInt(countMap.get("TLE").toString()) + 1);
            } else {
                countMap.put("RE", Integer.parseInt(countMap.get("RE").toString()) + 1);
            }
        }

        System.out.println("AC x " + countMap.get("AC"));
        System.out.println("WA x " + countMap.get("WA"));
        System.out.println("TLE x " + countMap.get("TLE"));
        System.out.println("RE x " + countMap.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 sc = new Scanner(System.in);
        int n = sc.nextInt();
        Map countMap = new HashMap<String, Integer>();
        countMap.put("AC", 0);
        countMap.put("WA", 0);
        countMap.put("TLE", 0);
        countMap.put("RE", 0);

        for (int i = 1; i <= n; i++) {
            String s = sc.next();
            if ("AC".equals(s)) {
                countMap.put("AC", Integer.parseInt(countMap.get("AC").toString()) + 1);
            } else if ("WA".equals(s)) {
                countMap.put("WA", Integer.parseInt(countMap.get("WA").toString()) + 1);
            } else if ("TLE".equals(s)) {
                countMap.put("TLE", Integer.parseInt(countMap.get("TLE").toString()) + 1);
            } else {
                countMap.put("RE", Integer.parseInt(countMap.get("RE").toString()) + 1);
            }
        }

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

        for (int i = 1; i <= n; i++) {
            String s = sc.next();
            if ("AC".equals(s)) {
                countMap.put("AC", Integer.parseInt(countMap.get("AC").toString()) + 1);
            } else if ("WA".equals(s)) {
                countMap.put("WA", Integer.parseInt(countMap.get("WA").toString()) + 1);
            } else if ("TLE".equals(s)) {
                countMap.put("TLE", Integer.parseInt(countMap.get("TLE").toString()) + 1);
            } else {
                countMap.put("RE", Integer.parseInt(countMap.get("RE").toString()) + 1);
            }
        }

        System.out.println("AC x " + countMap.get("AC"));
        System.out.println("WA x " + countMap.get("WA"));
        System.out.println("TLE x " + countMap.get("TLE"));
        System.out.println("RE x " + countMap.get("RE"));
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Map countMap = new HashMap<String, Integer>();
        countMap.put("AC", 0);
        countMap.put("WA", 0);
        countMap.put("TLE", 0);
        countMap.put("RE", 0);

        for (int i = 1; i <= n; i++) {
            String s = sc.next();
            if ("AC".equals(s)) {
                countMap.put("AC", Integer.parseInt(countMap.get("AC").toString()) + 1);
            } else if ("WA".equals(s)) {
                countMap.put("WA", Integer.parseInt(countMap.get("WA").toString()) + 1);
            } else if ("TLE".equals(s)) {
                countMap.put("TLE", Integer.parseInt(countMap.get("TLE").toString()) + 1);
            } else {
                countMap.put("RE", Integer.parseInt(countMap.get("RE").toString()) + 1);
            }
        }

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

        for (int i = 1; i <= n; i++) {
            String s = sc.next();
            if ("AC".equals(s)) {
                countMap.put("AC", Integer.parseInt(countMap.get("AC").toString()) + 1);
            } else if ("WA".equals(s)) {
                countMap.put("WA", Integer.parseInt(countMap.get("WA").toString()) + 1);
            } else if ("TLE".equals(s)) {
                countMap.put("TLE", Integer.parseInt(countMap.get("TLE").toString()) + 1);
            } else {
                countMap.put("RE", Integer.parseInt(countMap.get("RE").toString()) + 1);
            }
        }

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

        for (int i = 1; i <= n; i++) {
            String s = sc.next();
            if ("AC".equals(s)) {
                countMap.put("AC", Integer.parseInt(countMap.get("AC").toString()) + 1);
            } else if ("WA".equals(s)) {
                countMap.put("WA", Integer.parseInt(countMap.get("WA").toString()) + 1);
            } else if ("TLE".equals(s)) {
                countMap.put("TLE", Integer.parseInt(countMap.get("TLE").toString()) + 1);
            } else {
                countMap.put("RE", Integer.parseInt(countMap.get("RE").toString()) + 1);
            }
        }

        System.out.println("AC x " + countMap.get("AC"));
        System.out.println("WA x " + countMap.get("WA"));
        System.out.println("TLE x " + countMap.get("TLE"));
        System.out.println("RE x " + countMap.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 sc = new Scanner(System.in);
        int n = sc.nextInt();
        Map countMap = new HashMap<String, Integer>();
        countMap.put("AC", 0);
        countMap.put("WA", 0);
        countMap.put("TLE", 0);
        countMap.put("RE", 0);

        for (int i = 1; i <= n; i++) {
            String s = sc.next();
            if ("AC".equals(s)) {
                countMap.put("AC", Integer.parseInt(countMap.get("AC").toString()) + 1);
            } else if ("WA".equals(s)) {
                countMap.put("WA", Integer.parseInt(countMap.get("WA").toString()) + 1);
            } else if ("TLE".equals(s)) {
                countMap.put("TLE", Integer.parseInt(countMap.get("TLE").toString()) + 1);
            } else {
                countMap.put("RE", Integer.parseInt(countMap.get("RE").toString()) + 1);
            }
        }

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