import java.util.*;
import java.util.stream.*;

class Main {
  static final List<String> RESULT_TYPE = 
  Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE"));
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    Map<String, Integer> result = new HashMap<>();
    int N = sc.nextInt();
    for (int i = 0; i < N; i++) {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    }
    dispResult(result);
  }
  static void dispResult(Map<String, Integer> result) {
    for (String R : RESULT_TYPE) {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    }
  }
}

 import java.util.*; util.* java import java.util.stream.*; stream.* java.util class Main {
  static final List<String> RESULT_TYPE = 
  Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE"));
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    Map<String, Integer> result = new HashMap<>();
    int N = sc.nextInt();
    for (int i = 0; i < N; i++) {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    }
    dispResult(result);
  }
  static void dispResult(Map<String, Integer> result) {
    for (String R : RESULT_TYPE) {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    }
  }
} Main static final List<String> RESULT_TYPE = 
  Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE")); RESULT_TYPE Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE")) Collections.unmodifiableList Collections Arrays.asList("AC", "WA", "TLE", "RE") Arrays.asList Arrays "AC" "WA" "TLE" "RE" public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    Map<String, Integer> result = new HashMap<>();
    int N = sc.nextInt();
    for (int i = 0; i < N; i++) {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    }
    dispResult(result);
  } main {
    Scanner sc = new Scanner(System.in);
    Map<String, Integer> result = new HashMap<>();
    int N = sc.nextInt();
    for (int i = 0; i < N; i++) {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    }
    dispResult(result);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Map<String, Integer> result = new HashMap<>(); result new HashMap<>() int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    } {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    } String judge = sc.next(); judge sc.next() sc.next sc result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1) result.put result judge result.get(judge) == null ? 1 : result.get(judge) + 1 result.get(judge) == null result.get(judge) result.get result judge null 1 result.get(judge) + 1 result.get(judge) result.get result judge 1 dispResult(result) dispResult result String[] args args static void dispResult(Map<String, Integer> result) {
    for (String R : RESULT_TYPE) {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    }
  } dispResult {
    for (String R : RESULT_TYPE) {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    }
  } for (String R : RESULT_TYPE) {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    } String R RESULT_TYPE {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    } {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    } System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R))) System.out.println System.out System System.out R + " x " + (result.get(R) == null ? 0 : result.get(R)) R + " x " + (result.get(R) == null ? 0 : result.get(R)) R " x " (result.get(R) == null ? 0 : result.get(R)) result.get(R) == null result.get(R) result.get result R null 0 result.get(R) result.get result R Map<String, Integer> result result
import java.util.*;
import java.util.stream.*;

class Main {
  static final List<String> RESULT_TYPE = 
  Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE"));
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    Map<String, Integer> result = new HashMap<>();
    int N = sc.nextInt();
    for (int i = 0; i < N; i++) {
      String judge = sc.next();
      result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
    }
    dispResult(result);
  }
  static void dispResult(Map<String, Integer> result) {
    for (String R : RESULT_TYPE) {
      System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
    }
  }
}


