import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.*;

import static java.lang.Math.max;




public class Main {

  

    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        map.put("AC",0);
        map.put("WA",0);
        map.put("TLE",0);
        map.put("RE",0);

        while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        }
        System.out.println("AC "+"x "+map.get("AC"));
        System.out.println("WA "+"x "+map.get("WA"));
        System.out.println("TLE "+"x "+map.get("TLE"));
        System.out.println("RE "+"x "+map.get("RE"));
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.BigInteger; BigInteger java.math import java.util.*; util.* java import static java.lang.Math.max; import static java.lang.Math.max; import static java.lang.Math.max; public class Main {

  

    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        map.put("AC",0);
        map.put("WA",0);
        map.put("TLE",0);
        map.put("RE",0);

        while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        }
        System.out.println("AC "+"x "+map.get("AC"));
        System.out.println("WA "+"x "+map.get("WA"));
        System.out.println("TLE "+"x "+map.get("TLE"));
        System.out.println("RE "+"x "+map.get("RE"));
    }

} Main public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        map.put("AC",0);
        map.put("WA",0);
        map.put("TLE",0);
        map.put("RE",0);

        while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        }
        System.out.println("AC "+"x "+map.get("AC"));
        System.out.println("WA "+"x "+map.get("WA"));
        System.out.println("TLE "+"x "+map.get("TLE"));
        System.out.println("RE "+"x "+map.get("RE"));
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        map.put("AC",0);
        map.put("WA",0);
        map.put("TLE",0);
        map.put("RE",0);

        while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        }
        System.out.println("AC "+"x "+map.get("AC"));
        System.out.println("WA "+"x "+map.get("WA"));
        System.out.println("TLE "+"x "+map.get("TLE"));
        System.out.println("RE "+"x "+map.get("RE"));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Map<String,Integer> map = new HashMap<>(); map new HashMap<>() map.put("AC",0) map.put map "AC" 0 map.put("WA",0) map.put map "WA" 0 map.put("TLE",0) map.put map "TLE" 0 map.put("RE",0) map.put map "RE" 0 while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        } n-->0 n-- n 0 {

            String word = sc.next();
            map.put(word,map.get(word)+1);

        } String word = sc.next(); word sc.next() sc.next sc map.put(word,map.get(word)+1) map.put map word map.get(word)+1 map.get(word) map.get map word 1 System.out.println("AC "+"x "+map.get("AC")) System.out.println System.out System System.out "AC "+"x "+map.get("AC") "AC "+"x "+map.get("AC") "AC " "x " map.get("AC") map.get map "AC" System.out.println("WA "+"x "+map.get("WA")) System.out.println System.out System System.out "WA "+"x "+map.get("WA") "WA "+"x "+map.get("WA") "WA " "x " map.get("WA") map.get map "WA" System.out.println("TLE "+"x "+map.get("TLE")) System.out.println System.out System System.out "TLE "+"x "+map.get("TLE") "TLE "+"x "+map.get("TLE") "TLE " "x " map.get("TLE") map.get map "TLE" System.out.println("RE "+"x "+map.get("RE")) System.out.println System.out System System.out "RE "+"x "+map.get("RE") "RE "+"x "+map.get("RE") "RE " "x " map.get("RE") map.get map "RE" String args[] args public class Main {

  

    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        map.put("AC",0);
        map.put("WA",0);
        map.put("TLE",0);
        map.put("RE",0);

        while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        }
        System.out.println("AC "+"x "+map.get("AC"));
        System.out.println("WA "+"x "+map.get("WA"));
        System.out.println("TLE "+"x "+map.get("TLE"));
        System.out.println("RE "+"x "+map.get("RE"));
    }

} public class Main {

  

    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        map.put("AC",0);
        map.put("WA",0);
        map.put("TLE",0);
        map.put("RE",0);

        while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        }
        System.out.println("AC "+"x "+map.get("AC"));
        System.out.println("WA "+"x "+map.get("WA"));
        System.out.println("TLE "+"x "+map.get("TLE"));
        System.out.println("RE "+"x "+map.get("RE"));
    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.*;

import static java.lang.Math.max;




public class Main {

  

    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Map<String,Integer> map = new HashMap<>();
        map.put("AC",0);
        map.put("WA",0);
        map.put("TLE",0);
        map.put("RE",0);

        while(n-->0){

            String word = sc.next();
            map.put(word,map.get(word)+1);

        }
        System.out.println("AC "+"x "+map.get("AC"));
        System.out.println("WA "+"x "+map.get("WA"));
        System.out.println("TLE "+"x "+map.get("TLE"));
        System.out.println("RE "+"x "+map.get("RE"));
    }

}