import java.util.HashMap;
import java.util.Scanner;

public class Main {
	
	
	
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		HashMap<String,Integer> h = new HashMap<>();
		h.put("AC",0);
		h.put("TLE",0);
		h.put("RE",0);
		h.put("WA",0);
		while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		}
		System.out.println("AC x "+h.get("AC"));
		System.out.println("WA x "+h.get("WA"));
		System.out.println("TLE x "+h.get("TLE"));
		System.out.println("RE x "+h.get("RE"));
		
	}

} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {
	
	
	
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		HashMap<String,Integer> h = new HashMap<>();
		h.put("AC",0);
		h.put("TLE",0);
		h.put("RE",0);
		h.put("WA",0);
		while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		}
		System.out.println("AC x "+h.get("AC"));
		System.out.println("WA x "+h.get("WA"));
		System.out.println("TLE x "+h.get("TLE"));
		System.out.println("RE x "+h.get("RE"));
		
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		HashMap<String,Integer> h = new HashMap<>();
		h.put("AC",0);
		h.put("TLE",0);
		h.put("RE",0);
		h.put("WA",0);
		while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		}
		System.out.println("AC x "+h.get("AC"));
		System.out.println("WA x "+h.get("WA"));
		System.out.println("TLE x "+h.get("TLE"));
		System.out.println("RE x "+h.get("RE"));
		
	} main {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		HashMap<String,Integer> h = new HashMap<>();
		h.put("AC",0);
		h.put("TLE",0);
		h.put("RE",0);
		h.put("WA",0);
		while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		}
		System.out.println("AC x "+h.get("AC"));
		System.out.println("WA x "+h.get("WA"));
		System.out.println("TLE x "+h.get("TLE"));
		System.out.println("RE x "+h.get("RE"));
		
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s HashMap<String,Integer> h = new HashMap<>(); h new HashMap<>() h.put("AC",0) h.put h "AC" 0 h.put("TLE",0) h.put h "TLE" 0 h.put("RE",0) h.put h "RE" 0 h.put("WA",0) h.put h "WA" 0 while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		} n--!=0 n-- n 0 {
			String c = s.next();
			h.put(c, h.get(c)+1);
		} String c = s.next(); c s.next() s.next s h.put(c, h.get(c)+1) h.put h c h.get(c)+1 h.get(c) h.get h c 1 System.out.println("AC x "+h.get("AC")) System.out.println System.out System System.out "AC x "+h.get("AC") "AC x " h.get("AC") h.get h "AC" System.out.println("WA x "+h.get("WA")) System.out.println System.out System System.out "WA x "+h.get("WA") "WA x " h.get("WA") h.get h "WA" System.out.println("TLE x "+h.get("TLE")) System.out.println System.out System System.out "TLE x "+h.get("TLE") "TLE x " h.get("TLE") h.get h "TLE" System.out.println("RE x "+h.get("RE")) System.out.println System.out System System.out "RE x "+h.get("RE") "RE x " h.get("RE") h.get h "RE" String[] args args public class Main {
	
	
	
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		HashMap<String,Integer> h = new HashMap<>();
		h.put("AC",0);
		h.put("TLE",0);
		h.put("RE",0);
		h.put("WA",0);
		while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		}
		System.out.println("AC x "+h.get("AC"));
		System.out.println("WA x "+h.get("WA"));
		System.out.println("TLE x "+h.get("TLE"));
		System.out.println("RE x "+h.get("RE"));
		
	}

} public class Main {
	
	
	
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		HashMap<String,Integer> h = new HashMap<>();
		h.put("AC",0);
		h.put("TLE",0);
		h.put("RE",0);
		h.put("WA",0);
		while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		}
		System.out.println("AC x "+h.get("AC"));
		System.out.println("WA x "+h.get("WA"));
		System.out.println("TLE x "+h.get("TLE"));
		System.out.println("RE x "+h.get("RE"));
		
	}

} Main
import java.util.HashMap;
import java.util.Scanner;

public class Main {
	
	
	
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		HashMap<String,Integer> h = new HashMap<>();
		h.put("AC",0);
		h.put("TLE",0);
		h.put("RE",0);
		h.put("WA",0);
		while(n--!=0) {
			String c = s.next();
			h.put(c, h.get(c)+1);
		}
		System.out.println("AC x "+h.get("AC"));
		System.out.println("WA x "+h.get("WA"));
		System.out.println("TLE x "+h.get("TLE"));
		System.out.println("RE x "+h.get("RE"));
		
	}

}
