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);
            }
        }

        if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }
        if(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }
        if(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }
        if(s.get("RE")!=null) {
            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);
            }
        }

        if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }
        if(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }
        if(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }
        if(s.get("RE")!=null) {
            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);
            }
        }

        if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }
        if(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }
        if(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }
        if(s.get("RE")!=null) {
            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);
            }
        }

        if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }
        if(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }
        if(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }
        if(s.get("RE")!=null) {
            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 if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        } s.get("AC")!=null s.get("AC") s.get s "AC" null {
            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(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        } s.get("WA")!=null s.get("WA") s.get s "WA" null {
            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(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        } s.get("TLE")!=null s.get("TLE") s.get s "TLE" null {
            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(s.get("RE")!=null) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        } s.get("RE")!=null s.get("RE") s.get s "RE" null {
            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);
            }
        }

        if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }
        if(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }
        if(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }
        if(s.get("RE")!=null) {
            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);
            }
        }

        if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }
        if(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }
        if(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }
        if(s.get("RE")!=null) {
            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);
            }
        }

        if(s.get("AC")!=null) {
            System.out.println("AC" + " x " + s.get("AC"));
        } else {
            System.out.println("AC" + " x " + "0");
        }
        if(s.get("WA")!=null) {
            System.out.println("WA" + " x " + s.get("WA"));
        } else {
            System.out.println("WA" + " x " + "0");
        }
        if(s.get("TLE")!=null) {
            System.out.println("TLE" + " x " + s.get("TLE"));
        } else {
            System.out.println("TLE" + " x " + "0");
        }
        if(s.get("RE")!=null) {
            System.out.println("RE" + " x " + s.get("RE"));
        } else {
            System.out.println("RE" + " x " + "0");
        }

    }
}
