import java.util.*;
 
public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = (int)1e9 + 7;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = (int)1e7;
	
	
	void doIt() {
		int N = sc.nextInt();
		Map<String, Integer> map = new HashMap<>();
		map.put("AC", 0);
		map.put("WA", 0);
		map.put("TLE", 0);
		map.put("RE", 0);
		for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 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"));
	}
	
	public static void main(String[] args) {
		new Main().doIt();
	}
 
} import java.util.*; util.* java public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = (int)1e9 + 7;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = (int)1e7;
	
	
	void doIt() {
		int N = sc.nextInt();
		Map<String, Integer> map = new HashMap<>();
		map.put("AC", 0);
		map.put("WA", 0);
		map.put("TLE", 0);
		map.put("RE", 0);
		for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 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"));
	}
	
	public static void main(String[] args) {
		new Main().doIt();
	}
 
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int MOD = (int)1e9 + 7; MOD (int)1e9 + 7 (int)1e9 7 final int MAX = Integer.MAX_VALUE; MAX Integer.MAX_VALUE Integer Integer.MAX_VALUE final long LMAX = Long.MAX_VALUE; LMAX Long.MAX_VALUE Long Long.MAX_VALUE int len = (int)1e7; len (int)1e7 void doIt() {
		int N = sc.nextInt();
		Map<String, Integer> map = new HashMap<>();
		map.put("AC", 0);
		map.put("WA", 0);
		map.put("TLE", 0);
		map.put("RE", 0);
		for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 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"));
	} doIt {
		int N = sc.nextInt();
		Map<String, Integer> map = new HashMap<>();
		map.put("AC", 0);
		map.put("WA", 0);
		map.put("TLE", 0);
		map.put("RE", 0);
		for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 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"));
	} int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Map<String, Integer> map = new HashMap<>(); map new HashMap<>() 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 for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 1);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			String S = sc.next();
			map.put(S, map.get(S) + 1);
		} {
			String S = sc.next();
			map.put(S, map.get(S) + 1);
		} String S = sc.next(); S sc.next() sc.next sc map.put(S, map.get(S) + 1) map.put map S map.get(S) + 1 map.get(S) map.get map S 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" public static void main(String[] args) {
		new Main().doIt();
	} main {
		new Main().doIt();
	} new Main().doIt() new Main().doIt new Main() String[] args args public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = (int)1e9 + 7;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = (int)1e7;
	
	
	void doIt() {
		int N = sc.nextInt();
		Map<String, Integer> map = new HashMap<>();
		map.put("AC", 0);
		map.put("WA", 0);
		map.put("TLE", 0);
		map.put("RE", 0);
		for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 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"));
	}
	
	public static void main(String[] args) {
		new Main().doIt();
	}
 
} public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = (int)1e9 + 7;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = (int)1e7;
	
	
	void doIt() {
		int N = sc.nextInt();
		Map<String, Integer> map = new HashMap<>();
		map.put("AC", 0);
		map.put("WA", 0);
		map.put("TLE", 0);
		map.put("RE", 0);
		for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 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"));
	}
	
	public static void main(String[] args) {
		new Main().doIt();
	}
 
} Main
import java.util.*;
 
public class Main {
	Scanner sc = new Scanner(System.in);
	final int MOD = (int)1e9 + 7;
	final int MAX = Integer.MAX_VALUE;
	final long LMAX = Long.MAX_VALUE;
	int len = (int)1e7;
	
	
	void doIt() {
		int N = sc.nextInt();
		Map<String, Integer> map = new HashMap<>();
		map.put("AC", 0);
		map.put("WA", 0);
		map.put("TLE", 0);
		map.put("RE", 0);
		for(int i = 0; i < N; i++) {
			String S = sc.next();
			map.put(S, map.get(S) + 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"));
	}
	
	public static void main(String[] args) {
		new Main().doIt();
	}
 
}