import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int numTest = Integer.parseInt(stdIn.next());

        int numAC = 0;
        int numWA = 0;
        int numTLE = 0;
        int numRE = 0;
        for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        }
        System.out.println("AC x "+ numAC);
        System.out.println("WA x "+ numWA);
        System.out.println("TLE x "+ numTLE);
        System.out.println("RE x "+ numRE);
        stdIn.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int numTest = Integer.parseInt(stdIn.next());

        int numAC = 0;
        int numWA = 0;
        int numTLE = 0;
        int numRE = 0;
        for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        }
        System.out.println("AC x "+ numAC);
        System.out.println("WA x "+ numWA);
        System.out.println("TLE x "+ numTLE);
        System.out.println("RE x "+ numRE);
        stdIn.close();
    }

} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int numTest = Integer.parseInt(stdIn.next());

        int numAC = 0;
        int numWA = 0;
        int numTLE = 0;
        int numRE = 0;
        for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        }
        System.out.println("AC x "+ numAC);
        System.out.println("WA x "+ numWA);
        System.out.println("TLE x "+ numTLE);
        System.out.println("RE x "+ numRE);
        stdIn.close();
    } main {
        Scanner stdIn = new Scanner(System.in);
        int numTest = Integer.parseInt(stdIn.next());

        int numAC = 0;
        int numWA = 0;
        int numTLE = 0;
        int numRE = 0;
        for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        }
        System.out.println("AC x "+ numAC);
        System.out.println("WA x "+ numWA);
        System.out.println("TLE x "+ numTLE);
        System.out.println("RE x "+ numRE);
        stdIn.close();
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int numTest = Integer.parseInt(stdIn.next()); numTest Integer.parseInt(stdIn.next()) Integer.parseInt Integer stdIn.next() stdIn.next stdIn int numAC = 0; numAC 0 int numWA = 0; numWA 0 int numTLE = 0; numTLE 0 int numRE = 0; numRE 0 for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        } int i = 0; int i = 0; i 0 i < numTest i numTest i++ i++ i {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        } {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        } String result = stdIn.next(); result stdIn.next() stdIn.next stdIn if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            } "AC".equals(result) "AC".equals "AC" result {
                numAC++;
            } numAC++ numAC if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            } "WA".equals(result) "WA".equals "WA" result {
                numWA++;
            } numWA++ numWA if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            } "TLE".equals(result) "TLE".equals "TLE" result {
                numTLE++;
            } numTLE++ numTLE if ("RE".equals(result)) {
                numRE++;
            } "RE".equals(result) "RE".equals "RE" result {
                numRE++;
            } numRE++ numRE System.out.println("AC x "+ numAC) System.out.println System.out System System.out "AC x "+ numAC "AC x " numAC System.out.println("WA x "+ numWA) System.out.println System.out System System.out "WA x "+ numWA "WA x " numWA System.out.println("TLE x "+ numTLE) System.out.println System.out System System.out "TLE x "+ numTLE "TLE x " numTLE System.out.println("RE x "+ numRE) System.out.println System.out System System.out "RE x "+ numRE "RE x " numRE stdIn.close() stdIn.close stdIn String[] args args public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int numTest = Integer.parseInt(stdIn.next());

        int numAC = 0;
        int numWA = 0;
        int numTLE = 0;
        int numRE = 0;
        for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        }
        System.out.println("AC x "+ numAC);
        System.out.println("WA x "+ numWA);
        System.out.println("TLE x "+ numTLE);
        System.out.println("RE x "+ numRE);
        stdIn.close();
    }

} public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int numTest = Integer.parseInt(stdIn.next());

        int numAC = 0;
        int numWA = 0;
        int numTLE = 0;
        int numRE = 0;
        for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        }
        System.out.println("AC x "+ numAC);
        System.out.println("WA x "+ numWA);
        System.out.println("TLE x "+ numTLE);
        System.out.println("RE x "+ numRE);
        stdIn.close();
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int numTest = Integer.parseInt(stdIn.next());

        int numAC = 0;
        int numWA = 0;
        int numTLE = 0;
        int numRE = 0;
        for (int i = 0; i < numTest; i++) {
            String result = stdIn.next();
            if ("AC".equals(result)) {
                numAC++;
            } else if ("WA".equals(result)) {
                numWA++;
            } else if ("TLE".equals(result)) {
                numTLE++;
            } else if ("RE".equals(result)) {
                numRE++;
            }
        }
        System.out.println("AC x "+ numAC);
        System.out.println("WA x "+ numWA);
        System.out.println("TLE x "+ numTLE);
        System.out.println("RE x "+ numRE);
        stdIn.close();
    }

}