import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = Integer.valueOf(sc.nextInt());
    
    Map<String, Integer> map = new HashMap<String, Integer>();
    map.put("AC", 0);
    map.put("WA", 0);
    map.put("TLE", 0);
    map.put("RE", 0);    

    while(sc.hasNext()) {
      String str = sc.nextLine();
      if (map.containsKey(str)) {
        map.put(str, map.get(str)+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"));

    sc.close();
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = Integer.valueOf(sc.nextInt());
    
    Map<String, Integer> map = new HashMap<String, Integer>();
    map.put("AC", 0);
    map.put("WA", 0);
    map.put("TLE", 0);
    map.put("RE", 0);    

    while(sc.hasNext()) {
      String str = sc.nextLine();
      if (map.containsKey(str)) {
        map.put(str, map.get(str)+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"));

    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = Integer.valueOf(sc.nextInt());
    
    Map<String, Integer> map = new HashMap<String, Integer>();
    map.put("AC", 0);
    map.put("WA", 0);
    map.put("TLE", 0);
    map.put("RE", 0);    

    while(sc.hasNext()) {
      String str = sc.nextLine();
      if (map.containsKey(str)) {
        map.put(str, map.get(str)+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"));

    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int num = Integer.valueOf(sc.nextInt());
    
    Map<String, Integer> map = new HashMap<String, Integer>();
    map.put("AC", 0);
    map.put("WA", 0);
    map.put("TLE", 0);
    map.put("RE", 0);    

    while(sc.hasNext()) {
      String str = sc.nextLine();
      if (map.containsKey(str)) {
        map.put(str, map.get(str)+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"));

    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.valueOf(sc.nextInt()); num Integer.valueOf(sc.nextInt()) Integer.valueOf Integer sc.nextInt() sc.nextInt sc Map<String, Integer> map = new HashMap<String, Integer>(); map new HashMap<String, Integer>() 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(sc.hasNext()) {
      String str = sc.nextLine();
      if (map.containsKey(str)) {
        map.put(str, map.get(str)+1);
      }
    } sc.hasNext() sc.hasNext sc {
      String str = sc.nextLine();
      if (map.containsKey(str)) {
        map.put(str, map.get(str)+1);
      }
    } String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc if (map.containsKey(str)) {
        map.put(str, map.get(str)+1);
      } map.containsKey(str) map.containsKey map str {
        map.put(str, map.get(str)+1);
      } map.put(str, map.get(str)+1) map.put map str map.get(str)+1 map.get(str) map.get map str 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") 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") 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") 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") map.get map "RE" sc.close() sc.close sc String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int num = Integer.valueOf(sc.nextInt());
    
    Map<String, Integer> map = new HashMap<String, Integer>();
    map.put("AC", 0);
    map.put("WA", 0);
    map.put("TLE", 0);
    map.put("RE", 0);    

    while(sc.hasNext()) {
      String str = sc.nextLine();
      if (map.containsKey(str)) {
        map.put(str, map.get(str)+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"));

    sc.close();
  }
}