import java.util.*;

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

        int n = sc.nextInt();
        Map<String, Integer> s = new HashMap<>();
        for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        }

        String[] rst = {"AC", "WA", "TLE", "RE"};
        boolean isAC = false;
        boolean isWA = false;
        boolean isTLE = false;
        boolean isRE = false;
        for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        }

        if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }

        if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }

        if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }

        if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String, Integer> s = new HashMap<>();
        for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        }

        String[] rst = {"AC", "WA", "TLE", "RE"};
        boolean isAC = false;
        boolean isWA = false;
        boolean isTLE = false;
        boolean isRE = false;
        for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        }

        if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }

        if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }

        if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }

        if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String, Integer> s = new HashMap<>();
        for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        }

        String[] rst = {"AC", "WA", "TLE", "RE"};
        boolean isAC = false;
        boolean isWA = false;
        boolean isTLE = false;
        boolean isRE = false;
        for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        }

        if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }

        if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }

        if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }

        if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String, Integer> s = new HashMap<>();
        for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        }

        String[] rst = {"AC", "WA", "TLE", "RE"};
        boolean isAC = false;
        boolean isWA = false;
        boolean isTLE = false;
        boolean isRE = false;
        for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        }

        if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }

        if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }

        if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }

        if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Map<String, Integer> s = new HashMap<>(); s new HashMap<>() for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        } {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        } String tmp = sc.next(); tmp sc.next() sc.next sc if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            } s.containsKey(tmp) s.containsKey s tmp {
                s.put(tmp, s.get(tmp)+1);
            } s.put(tmp, s.get(tmp)+1) s.put s tmp s.get(tmp)+1 s.get(tmp) s.get s tmp 1 {
                s.put(tmp, 1);
            } s.put(tmp, 1) s.put s tmp 1 String[] rst = {"AC", "WA", "TLE", "RE"}; rst {"AC", "WA", "TLE", "RE"} "AC" "WA" "TLE" "RE" boolean isAC = false; isAC false boolean isWA = false; isWA false boolean isTLE = false; isTLE false boolean isRE = false; isRE false for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        } String tmp2 s.keySet() s.keySet s {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        } {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        } if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true; tmp2.equals(rst[0]) tmp2.equals tmp2 rst[0] rst 0 isAC = true isAC true if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true; tmp2.equals(rst[1]) tmp2.equals tmp2 rst[1] rst 1 isWA = true isWA true if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true; tmp2.equals(rst[2]) tmp2.equals tmp2 rst[2] rst 2 isTLE = true isTLE true if(tmp2.equals(rst[3])) isRE = true; tmp2.equals(rst[3]) tmp2.equals tmp2 rst[3] rst 3 isRE = true isRE true if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        } isAC {
            System.out.println("AC" + " x " + s.get("AC"));
        } System.out.println("AC" + " x " + s.get("AC")) System.out.println System.out System System.out "AC" + " x " + s.get("AC") "AC" + " x " + s.get("AC") "AC" " x " s.get("AC") s.get s "AC" {
            System.out.println("AC" + " x " + "0");
        } System.out.println("AC" + " x " + "0") System.out.println System.out System System.out "AC" + " x " + "0" "AC" + " x " + "0" "AC" " x " "0" if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        } isWA {
            System.out.println("WA" + " x " + s.get("WA"));
        } System.out.println("WA" + " x " + s.get("WA")) System.out.println System.out System System.out "WA" + " x " + s.get("WA") "WA" + " x " + s.get("WA") "WA" " x " s.get("WA") s.get s "WA" {
            System.out.println("WA" + " x " + "0");
        } System.out.println("WA" + " x " + "0") System.out.println System.out System System.out "WA" + " x " + "0" "WA" + " x " + "0" "WA" " x " "0" if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        } isTLE {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } System.out.println("TLE" + " x " + s.get("TLE")) System.out.println System.out System System.out "TLE" + " x " + s.get("TLE") "TLE" + " x " + s.get("TLE") "TLE" " x " s.get("TLE") s.get s "TLE" {
            System.out.println("TLE" + " x " + "0");
        } System.out.println("TLE" + " x " + "0") System.out.println System.out System System.out "TLE" + " x " + "0" "TLE" + " x " + "0" "TLE" " x " "0" if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        } isRE {
            System.out.println("RE" + " x " + s.get("RE"));
        } System.out.println("RE" + " x " + s.get("RE")) System.out.println System.out System System.out "RE" + " x " + s.get("RE") "RE" + " x " + s.get("RE") "RE" " x " s.get("RE") s.get s "RE" {
            System.out.println("RE" + " x " + "0");
        } System.out.println("RE" + " x " + "0") System.out.println System.out System System.out "RE" + " x " + "0" "RE" + " x " + "0" "RE" " x " "0" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String, Integer> s = new HashMap<>();
        for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        }

        String[] rst = {"AC", "WA", "TLE", "RE"};
        boolean isAC = false;
        boolean isWA = false;
        boolean isTLE = false;
        boolean isRE = false;
        for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        }

        if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }

        if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }

        if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }

        if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String, Integer> s = new HashMap<>();
        for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        }

        String[] rst = {"AC", "WA", "TLE", "RE"};
        boolean isAC = false;
        boolean isWA = false;
        boolean isTLE = false;
        boolean isRE = false;
        for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        }

        if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }

        if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }

        if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }

        if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }
    }
} Main
import java.util.*;

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

        int n = sc.nextInt();
        Map<String, Integer> s = new HashMap<>();
        for(int i=0; i<n; i++) {
            String tmp = sc.next();
            if(s.containsKey(tmp)) {
                s.put(tmp, s.get(tmp)+1);
            } else {
                s.put(tmp, 1);
            }
        }

        String[] rst = {"AC", "WA", "TLE", "RE"};
        boolean isAC = false;
        boolean isWA = false;
        boolean isTLE = false;
        boolean isRE = false;
        for(String tmp2: s.keySet()) {
            if(tmp2.equals(rst[0])) isAC = true;
            else if(tmp2.equals(rst[1])) isWA = true;
            else if(tmp2.equals(rst[2])) isTLE = true;
            else if(tmp2.equals(rst[3])) isRE = true;
        }

        if(isAC) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }

        if(isWA) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }

        if(isTLE) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }

        if(isRE) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }
    }
}
