import java.lang.*;
import java.util.*;

public class Main{
  public static void main(String[] args){
    HashMap<String,Integer> map = new HashMap<>();
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    
    while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    }
    
    System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
    System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
    System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
    System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE")));
  }
} import java.lang.*; lang.* java import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    HashMap<String,Integer> map = new HashMap<>();
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    
    while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    }
    
    System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
    System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
    System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
    System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE")));
  }
} Main public static void main(String[] args){
    HashMap<String,Integer> map = new HashMap<>();
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    
    while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    }
    
    System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
    System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
    System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
    System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE")));
  } main {
    HashMap<String,Integer> map = new HashMap<>();
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    
    while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    }
    
    System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
    System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
    System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
    System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE")));
  } HashMap<String,Integer> map = new HashMap<>(); map new HashMap<>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    } scan.hasNextLine() scan.hasNextLine scan {
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    } String val = scan.nextLine(); val scan.nextLine() scan.nextLine scan if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1); map.get(val) == null map.get(val) map.get map val null map.put(val, 1) map.put map val 1 map.put(val, map.get(val)+1) map.put map val map.get(val)+1 map.get(val) map.get map val 1 System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC"))) System.out.println System.out System System.out "AC x " + ((map.get("AC") == null)? 0 : map.get("AC")) "AC x " ((map.get("AC") == null)? 0 : map.get("AC")) (map.get("AC") == null) map.get("AC") map.get map "AC" null 0 map.get("AC") map.get map "AC" System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA"))) System.out.println System.out System System.out "WA x " + ((map.get("WA") == null)? 0 : map.get("WA")) "WA x " ((map.get("WA") == null)? 0 : map.get("WA")) (map.get("WA") == null) map.get("WA") map.get map "WA" null 0 map.get("WA") map.get map "WA" System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE"))) System.out.println System.out System System.out "TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")) "TLE x " ((map.get("TLE") == null)? 0 : map.get("TLE")) (map.get("TLE") == null) map.get("TLE") map.get map "TLE" null 0 map.get("TLE") map.get map "TLE" System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE"))) System.out.println System.out System System.out "RE x " + ((map.get("RE") == null)? 0 : map.get("RE")) "RE x " ((map.get("RE") == null)? 0 : map.get("RE")) (map.get("RE") == null) map.get("RE") map.get map "RE" null 0 map.get("RE") map.get map "RE" String[] args args public class Main{
  public static void main(String[] args){
    HashMap<String,Integer> map = new HashMap<>();
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    
    while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    }
    
    System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
    System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
    System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
    System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE")));
  }
} public class Main{
  public static void main(String[] args){
    HashMap<String,Integer> map = new HashMap<>();
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    
    while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    }
    
    System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
    System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
    System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
    System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE")));
  }
} Main
import java.lang.*;
import java.util.*;

public class Main{
  public static void main(String[] args){
    HashMap<String,Integer> map = new HashMap<>();
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    
    while(scan.hasNextLine()){
      String val = scan.nextLine();
      if(map.get(val) == null) map.put(val, 1);
      else map.put(val, map.get(val)+1);
    }
    
    System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
    System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
    System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
    System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("RE")));
  }
}