import java.util.*;

class Main
{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        String judge;
        int countAC = 0;
        int countWA = 0;
        int countTLE = 0;
        int countRE = 0;
        for (int i = 0; i < n; i++) {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        }
        
        System.out.println("AC x " + countAC);
        System.out.println("WA x " + countWA);
        System.out.println("TLE x " + countTLE);
        System.out.println("RE x " + countRE);
    }
} import java.util.*; util.* java class Main
{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        String judge;
        int countAC = 0;
        int countWA = 0;
        int countTLE = 0;
        int countRE = 0;
        for (int i = 0; i < n; i++) {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        }
        
        System.out.println("AC x " + countAC);
        System.out.println("WA x " + countWA);
        System.out.println("TLE x " + countTLE);
        System.out.println("RE x " + countRE);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        String judge;
        int countAC = 0;
        int countWA = 0;
        int countTLE = 0;
        int countRE = 0;
        for (int i = 0; i < n; i++) {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        }
        
        System.out.println("AC x " + countAC);
        System.out.println("WA x " + countWA);
        System.out.println("TLE x " + countTLE);
        System.out.println("RE x " + countRE);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        String judge;
        int countAC = 0;
        int countWA = 0;
        int countTLE = 0;
        int countRE = 0;
        for (int i = 0; i < n; i++) {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        }
        
        System.out.println("AC x " + countAC);
        System.out.println("WA x " + countWA);
        System.out.println("TLE x " + countTLE);
        System.out.println("RE x " + countRE);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String judge; judge int countAC = 0; countAC 0 int countWA = 0; countWA 0 int countTLE = 0; countTLE 0 int countRE = 0; countRE 0 for (int i = 0; i < n; i++) {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        } {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        } judge = sc.next() judge sc.next() sc.next sc if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            } judge.equals("AC") judge.equals judge "AC" {
                countAC++;
            } countAC++ countAC if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            } judge.equals("WA") judge.equals judge "WA" {
                countWA++;
            } countWA++ countWA if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            } judge.equals("TLE") judge.equals judge "TLE" {
                countTLE++;
            } countTLE++ countTLE if (judge.equals("RE")) {
                countRE++;
            } judge.equals("RE") judge.equals judge "RE" {
                countRE++;
            } countRE++ countRE System.out.println("AC x " + countAC) System.out.println System.out System System.out "AC x " + countAC "AC x " countAC System.out.println("WA x " + countWA) System.out.println System.out System System.out "WA x " + countWA "WA x " countWA System.out.println("TLE x " + countTLE) System.out.println System.out System System.out "TLE x " + countTLE "TLE x " countTLE System.out.println("RE x " + countRE) System.out.println System.out System System.out "RE x " + countRE "RE x " countRE String[] args args
import java.util.*;

class Main
{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        String judge;
        int countAC = 0;
        int countWA = 0;
        int countTLE = 0;
        int countRE = 0;
        for (int i = 0; i < n; i++) {
            judge = sc.next();
            
            if (judge.equals("AC")) {
                countAC++;
            } else if (judge.equals("WA")) {
                countWA++;
            } else if (judge.equals("TLE")) {
                countTLE++;
            } else if (judge.equals("RE")) {
                countRE++;
            }
        }
        
        System.out.println("AC x " + countAC);
        System.out.println("WA x " + countWA);
        System.out.println("TLE x " + countTLE);
        System.out.println("RE x " + countRE);
    }
}