import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        int A=0,W=0,T=0,R=0;
        String AC = new String("AC");
        String WA = new String("WA");
        String TLE = new String("TLE");
        String RE = new String("RE");
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        int A=0,W=0,T=0,R=0;
        String AC = new String("AC");
        String WA = new String("WA");
        String TLE = new String("TLE");
        String RE = new String("RE");
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    }
} Main public static void main(String[] args){
        int A=0,W=0,T=0,R=0;
        String AC = new String("AC");
        String WA = new String("WA");
        String TLE = new String("TLE");
        String RE = new String("RE");
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    } main {
        int A=0,W=0,T=0,R=0;
        String AC = new String("AC");
        String WA = new String("WA");
        String TLE = new String("TLE");
        String RE = new String("RE");
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    } int A=0 A 0 W=0 W 0 T=0 T 0 R=0; R 0 String AC = new String("AC"); AC new String("AC") String WA = new String("WA"); WA new String("WA") String TLE = new String("TLE"); TLE new String("TLE") String RE = new String("RE"); RE new String("RE") Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String txt = new String(); txt new String() int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        } {
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        } txt = scan.next() txt scan.next() scan.next scan if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            } txt.equals(AC) txt.equals txt AC {
                A++;
            } A++ A if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            } txt.equals(WA) txt.equals txt WA {
                W++;
            } W++ W if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            } txt.equals(TLE) txt.equals txt TLE {
                T++;
            } T++ T if(txt.equals(RE)){
                R++;
            } txt.equals(RE) txt.equals txt RE {
                R++;
            } R++ R scan.close() scan.close scan System.out.println("AC x " + A) System.out.println System.out System System.out "AC x " + A "AC x " A System.out.println("WA x " + W) System.out.println System.out System System.out "WA x " + W "WA x " W System.out.println("TLE x " + T) System.out.println System.out System System.out "TLE x " + T "TLE x " T System.out.println("RE x " + R) System.out.println System.out System System.out "RE x " + R "RE x " R String[] args args public class Main {
    public static void main(String[] args){
        int A=0,W=0,T=0,R=0;
        String AC = new String("AC");
        String WA = new String("WA");
        String TLE = new String("TLE");
        String RE = new String("RE");
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    }
} public class Main {
    public static void main(String[] args){
        int A=0,W=0,T=0,R=0;
        String AC = new String("AC");
        String WA = new String("WA");
        String TLE = new String("TLE");
        String RE = new String("RE");
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        int A=0,W=0,T=0,R=0;
        String AC = new String("AC");
        String WA = new String("WA");
        String TLE = new String("TLE");
        String RE = new String("RE");
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt.equals(AC)){
                A++;
            }else if(txt.equals(WA)){
                W++;
            }else if(txt.equals(TLE)){
                T++;
            }else if(txt.equals(RE)){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    }
}