import java.util.Scanner;
import java.util.HashMap;
 
class Main {
	public static void main(String[] args) {
 
	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    String S = "";
	    Integer count = 0;
	    HashMap<String, Integer> map = new HashMap<>();
	    
	    for (int i = 1; i <= N ; i++) {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    }
	    
	    Integer AC = map.get("AC"); if (AC == null) AC = 0;
	    Integer WA = map.get("WA"); if (WA == null) WA = 0;
	    Integer TLE = map.get("TLE"); if (TLE == null) TLE = 0;
	    Integer RE = map.get("RE"); if (RE == null) RE = 0;
	    
	    System.out.println("AC x " + AC);
	    System.out.println("WA x " + WA);
	    System.out.println("TLE x " + TLE);
	    System.out.println("RE x " + RE);
  }
} import java.util.Scanner; Scanner java.util import java.util.HashMap; HashMap java.util class Main {
	public static void main(String[] args) {
 
	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    String S = "";
	    Integer count = 0;
	    HashMap<String, Integer> map = new HashMap<>();
	    
	    for (int i = 1; i <= N ; i++) {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    }
	    
	    Integer AC = map.get("AC"); if (AC == null) AC = 0;
	    Integer WA = map.get("WA"); if (WA == null) WA = 0;
	    Integer TLE = map.get("TLE"); if (TLE == null) TLE = 0;
	    Integer RE = map.get("RE"); if (RE == null) RE = 0;
	    
	    System.out.println("AC x " + AC);
	    System.out.println("WA x " + WA);
	    System.out.println("TLE x " + TLE);
	    System.out.println("RE x " + RE);
  }
} Main public static void main(String[] args) {
 
	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    String S = "";
	    Integer count = 0;
	    HashMap<String, Integer> map = new HashMap<>();
	    
	    for (int i = 1; i <= N ; i++) {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    }
	    
	    Integer AC = map.get("AC"); if (AC == null) AC = 0;
	    Integer WA = map.get("WA"); if (WA == null) WA = 0;
	    Integer TLE = map.get("TLE"); if (TLE == null) TLE = 0;
	    Integer RE = map.get("RE"); if (RE == null) RE = 0;
	    
	    System.out.println("AC x " + AC);
	    System.out.println("WA x " + WA);
	    System.out.println("TLE x " + TLE);
	    System.out.println("RE x " + RE);
  } main {
 
	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    String S = "";
	    Integer count = 0;
	    HashMap<String, Integer> map = new HashMap<>();
	    
	    for (int i = 1; i <= N ; i++) {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    }
	    
	    Integer AC = map.get("AC"); if (AC == null) AC = 0;
	    Integer WA = map.get("WA"); if (WA == null) WA = 0;
	    Integer TLE = map.get("TLE"); if (TLE == null) TLE = 0;
	    Integer RE = map.get("RE"); if (RE == null) RE = 0;
	    
	    System.out.println("AC x " + AC);
	    System.out.println("WA x " + WA);
	    System.out.println("TLE x " + TLE);
	    System.out.println("RE x " + RE);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String S = ""; S "" Integer count = 0; count 0 HashMap<String, Integer> map = new HashMap<>(); map new HashMap<>() for (int i = 1; i <= N ; i++) {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    } {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    } S = sc.next() S sc.next() sc.next sc count = map.get(S) count map.get(S) map.get map S if (count == null) count = 1; else count++; count == null count null count = 1 count 1 count++ count map.put(S, count) map.put map S count Integer AC = map.get("AC"); AC map.get("AC") map.get map "AC" if (AC == null) AC = 0; AC == null AC null AC = 0 AC 0 Integer WA = map.get("WA"); WA map.get("WA") map.get map "WA" if (WA == null) WA = 0; WA == null WA null WA = 0 WA 0 Integer TLE = map.get("TLE"); TLE map.get("TLE") map.get map "TLE" if (TLE == null) TLE = 0; TLE == null TLE null TLE = 0 TLE 0 Integer RE = map.get("RE"); RE map.get("RE") map.get map "RE" if (RE == null) RE = 0; RE == null RE null RE = 0 RE 0 System.out.println("AC x " + AC) System.out.println System.out System System.out "AC x " + AC "AC x " AC System.out.println("WA x " + WA) System.out.println System.out System System.out "WA x " + WA "WA x " WA System.out.println("TLE x " + TLE) System.out.println System.out System System.out "TLE x " + TLE "TLE x " TLE System.out.println("RE x " + RE) System.out.println System.out System System.out "RE x " + RE "RE x " RE String[] args args
import java.util.Scanner;
import java.util.HashMap;
 
class Main {
	public static void main(String[] args) {
 
	    Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    String S = "";
	    Integer count = 0;
	    HashMap<String, Integer> map = new HashMap<>();
	    
	    for (int i = 1; i <= N ; i++) {
	      S = sc.next();
	      count = map.get(S);
	      if (count == null) count = 1; else count++;
	      map.put(S, count);
	    }
	    
	    Integer AC = map.get("AC"); if (AC == null) AC = 0;
	    Integer WA = map.get("WA"); if (WA == null) WA = 0;
	    Integer TLE = map.get("TLE"); if (TLE == null) TLE = 0;
	    Integer RE = map.get("RE"); if (RE == null) RE = 0;
	    
	    System.out.println("AC x " + AC);
	    System.out.println("WA x " + WA);
	    System.out.println("TLE x " + TLE);
	    System.out.println("RE x " + RE);
  }
}