import java.io.*;
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int t;
		HashMap<String, Integer> stat = new HashMap<String, Integer> ();
		stat.put("AC", 0);
		stat.put("WA", 0);
		stat.put("TLE", 0);
		stat.put("RE", 0);
		Scanner in = new Scanner(System.in);
		
		t = in.nextInt();
		while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		}
		
		for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		}
		

	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int t;
		HashMap<String, Integer> stat = new HashMap<String, Integer> ();
		stat.put("AC", 0);
		stat.put("WA", 0);
		stat.put("TLE", 0);
		stat.put("RE", 0);
		Scanner in = new Scanner(System.in);
		
		t = in.nextInt();
		while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		}
		
		for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		}
		

	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		int t;
		HashMap<String, Integer> stat = new HashMap<String, Integer> ();
		stat.put("AC", 0);
		stat.put("WA", 0);
		stat.put("TLE", 0);
		stat.put("RE", 0);
		Scanner in = new Scanner(System.in);
		
		t = in.nextInt();
		while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		}
		
		for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		}
		

	} main {
		// TODO Auto-generated method stub
		int t;
		HashMap<String, Integer> stat = new HashMap<String, Integer> ();
		stat.put("AC", 0);
		stat.put("WA", 0);
		stat.put("TLE", 0);
		stat.put("RE", 0);
		Scanner in = new Scanner(System.in);
		
		t = in.nextInt();
		while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		}
		
		for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		}
		

	} int t; t HashMap<String, Integer> stat = new HashMap<String, Integer> (); stat new HashMap<String, Integer> () stat.put("AC", 0) stat.put stat "AC" 0 stat.put("WA", 0) stat.put stat "WA" 0 stat.put("TLE", 0) stat.put stat "TLE" 0 stat.put("RE", 0) stat.put stat "RE" 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) t = in.nextInt() t in.nextInt() in.nextInt in while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		} t-- > 0 t-- t 0 {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		} String s = in.next(); s in.next() in.next in stat.put(s, stat.get(s) + 1) stat.put stat s stat.get(s) + 1 stat.get(s) stat.get stat s 1 for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		} String s new String[]{"AC", "WA", "TLE", "RE"} {
			System.out.printf("%s x %d\n", s, stat.get(s));
		} {
			System.out.printf("%s x %d\n", s, stat.get(s));
		} System.out.printf("%s x %d\n", s, stat.get(s)) System.out.printf System.out System System.out "%s x %d\n" s stat.get(s) stat.get stat s String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int t;
		HashMap<String, Integer> stat = new HashMap<String, Integer> ();
		stat.put("AC", 0);
		stat.put("WA", 0);
		stat.put("TLE", 0);
		stat.put("RE", 0);
		Scanner in = new Scanner(System.in);
		
		t = in.nextInt();
		while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		}
		
		for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		}
		

	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int t;
		HashMap<String, Integer> stat = new HashMap<String, Integer> ();
		stat.put("AC", 0);
		stat.put("WA", 0);
		stat.put("TLE", 0);
		stat.put("RE", 0);
		Scanner in = new Scanner(System.in);
		
		t = in.nextInt();
		while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		}
		
		for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		}
		

	}
} Main
import java.io.*;
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int t;
		HashMap<String, Integer> stat = new HashMap<String, Integer> ();
		stat.put("AC", 0);
		stat.put("WA", 0);
		stat.put("TLE", 0);
		stat.put("RE", 0);
		Scanner in = new Scanner(System.in);
		
		t = in.nextInt();
		while(t-- > 0) {
			String s = in.next();
			stat.put(s, stat.get(s) + 1);
		}
		
		for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
			System.out.printf("%s x %d\n", s, stat.get(s));
		}
		

	}
}