import java.util.*;

public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] c = new int[4];
        String[] str = {"AC", "WA", "TLE", "RE"};
        for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        }
        for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] c = new int[4];
        String[] str = {"AC", "WA", "TLE", "RE"};
        for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        }
        for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        }
    }
} Main public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] c = new int[4];
        String[] str = {"AC", "WA", "TLE", "RE"};
        for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        }
        for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        }
    } main {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] c = new int[4];
        String[] str = {"AC", "WA", "TLE", "RE"};
        for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        }
        for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] c = new int[4]; c new int[4] 4 String[] str = {"AC", "WA", "TLE", "RE"}; str {"AC", "WA", "TLE", "RE"} "AC" "WA" "TLE" "RE" for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        } {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        } String s = sc.next(); s sc.next() sc.next sc for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            } int j = 0; int j = 0; j 0 j < 4 j 4 j++ j++ j {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            } {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            } if(s.equals(str[j])) {
                    c[j]++;
                    break;
                } s.equals(str[j]) s.equals s str[j] str j {
                    c[j]++;
                    break;
                } c[j]++ c[j] c j break; for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            System.out.println(str[i] + " x " + c[i]);
        } {
            System.out.println(str[i] + " x " + c[i]);
        } System.out.println(str[i] + " x " + c[i]) System.out.println System.out System System.out str[i] + " x " + c[i] str[i] + " x " + c[i] str[i] str i " x " c[i] c i String[] args args public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] c = new int[4];
        String[] str = {"AC", "WA", "TLE", "RE"};
        for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        }
        for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        }
    }
} public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] c = new int[4];
        String[] str = {"AC", "WA", "TLE", "RE"};
        for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        }
        for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] c = new int[4];
        String[] str = {"AC", "WA", "TLE", "RE"};
        for(int i = 0; i < n; i++) {
            String s = sc.next();
            for(int j = 0; j < 4; j++) {
                if(s.equals(str[j])) {
                    c[j]++;
                    break;
                }
            }
        }
        for(int i = 0; i < 4; i++) {
            System.out.println(str[i] + " x " + c[i]);
        }
    }
}
