//package beg_173;
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int ac=0;
        int tle=0;
        int wa=0;
        int re=0;
        int num = s.nextInt();
        String tvguybhi = s.nextLine();
        for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        }
        System.out.println("AC x " + Integer.toString(ac));
        System.out.println("WA x " + Integer.toString(wa));
        System.out.println("TLE x " + Integer.toString(tle));
        System.out.println("RE x " + Integer.toString(re));

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int ac=0;
        int tle=0;
        int wa=0;
        int re=0;
        int num = s.nextInt();
        String tvguybhi = s.nextLine();
        for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        }
        System.out.println("AC x " + Integer.toString(ac));
        System.out.println("WA x " + Integer.toString(wa));
        System.out.println("TLE x " + Integer.toString(tle));
        System.out.println("RE x " + Integer.toString(re));

    }
} Main public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int ac=0;
        int tle=0;
        int wa=0;
        int re=0;
        int num = s.nextInt();
        String tvguybhi = s.nextLine();
        for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        }
        System.out.println("AC x " + Integer.toString(ac));
        System.out.println("WA x " + Integer.toString(wa));
        System.out.println("TLE x " + Integer.toString(tle));
        System.out.println("RE x " + Integer.toString(re));

    } main {
        Scanner s = new Scanner(System.in);
        int ac=0;
        int tle=0;
        int wa=0;
        int re=0;
        int num = s.nextInt();
        String tvguybhi = s.nextLine();
        for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        }
        System.out.println("AC x " + Integer.toString(ac));
        System.out.println("WA x " + Integer.toString(wa));
        System.out.println("TLE x " + Integer.toString(tle));
        System.out.println("RE x " + Integer.toString(re));

    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int ac=0; ac 0 int tle=0; tle 0 int wa=0; wa 0 int re=0; re 0 int num = s.nextInt(); num s.nextInt() s.nextInt s String tvguybhi = s.nextLine(); tvguybhi s.nextLine() s.nextLine s for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        } int i=0; int i=0; i 0 i<num i num i++ i++ i {
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        } {
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        } String a = s.nextLine(); a s.nextLine() s.nextLine s if (a.equals("AC")){
                ac++;
            } a.equals("AC") a.equals a "AC" {
                ac++;
            } ac++ ac if (a.equals("TLE")){
                tle++;
            } a.equals("TLE") a.equals a "TLE" {
                tle++;
            } tle++ tle if (a.equals("WA")){
                wa++;
            } a.equals("WA") a.equals a "WA" {
                wa++;
            } wa++ wa if (a.equals("RE")){
                re++;
            } a.equals("RE") a.equals a "RE" {
                re++;
            } re++ re System.out.println("AC x " + Integer.toString(ac)) System.out.println System.out System System.out "AC x " + Integer.toString(ac) "AC x " Integer.toString(ac) Integer.toString Integer ac System.out.println("WA x " + Integer.toString(wa)) System.out.println System.out System System.out "WA x " + Integer.toString(wa) "WA x " Integer.toString(wa) Integer.toString Integer wa System.out.println("TLE x " + Integer.toString(tle)) System.out.println System.out System System.out "TLE x " + Integer.toString(tle) "TLE x " Integer.toString(tle) Integer.toString Integer tle System.out.println("RE x " + Integer.toString(re)) System.out.println System.out System System.out "RE x " + Integer.toString(re) "RE x " Integer.toString(re) Integer.toString Integer re String[] args args public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int ac=0;
        int tle=0;
        int wa=0;
        int re=0;
        int num = s.nextInt();
        String tvguybhi = s.nextLine();
        for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        }
        System.out.println("AC x " + Integer.toString(ac));
        System.out.println("WA x " + Integer.toString(wa));
        System.out.println("TLE x " + Integer.toString(tle));
        System.out.println("RE x " + Integer.toString(re));

    }
} public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int ac=0;
        int tle=0;
        int wa=0;
        int re=0;
        int num = s.nextInt();
        String tvguybhi = s.nextLine();
        for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        }
        System.out.println("AC x " + Integer.toString(ac));
        System.out.println("WA x " + Integer.toString(wa));
        System.out.println("TLE x " + Integer.toString(tle));
        System.out.println("RE x " + Integer.toString(re));

    }
} Main
//package beg_173;
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int ac=0;
        int tle=0;
        int wa=0;
        int re=0;
        int num = s.nextInt();
        String tvguybhi = s.nextLine();
        for (int i=0;i<num;i++){
            String a = s.nextLine();
            if (a.equals("AC")){
                ac++;
            }
            if (a.equals("TLE")){
                tle++;
            }
            if (a.equals("WA")){
                wa++;
            }
            if (a.equals("RE")){
                re++;
            }
        }
        System.out.println("AC x " + Integer.toString(ac));
        System.out.println("WA x " + Integer.toString(wa));
        System.out.println("TLE x " + Integer.toString(tle));
        System.out.println("RE x " + Integer.toString(re));

    }
}
