import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] S = new int[4];
		for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		}
		for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		}
		System.out.println("AC x " + S[0]);
		System.out.println("WA x " + S[1]);
		System.out.println("TLE x " + S[2]);
		System.out.println("RE x " + S[3]);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] S = new int[4];
		for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		}
		for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		}
		System.out.println("AC x " + S[0]);
		System.out.println("WA x " + S[1]);
		System.out.println("TLE x " + S[2]);
		System.out.println("RE x " + S[3]);
	}
} Main public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] S = new int[4];
		for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		}
		for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		}
		System.out.println("AC x " + S[0]);
		System.out.println("WA x " + S[1]);
		System.out.println("TLE x " + S[2]);
		System.out.println("RE x " + S[3]);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] S = new int[4];
		for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		}
		for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		}
		System.out.println("AC x " + S[0]);
		System.out.println("WA x " + S[1]);
		System.out.println("TLE x " + S[2]);
		System.out.println("RE x " + S[3]);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int[] S = new int[4]; S new int[4] 4 for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		} int i = 0; int i = 0; i 0 i < S.length i S.length S S.length i ++ i ++ i {
			S[i] = 0;
		} {
			S[i] = 0;
		} S[i] = 0 S[i] S i 0 for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		} int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		} {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		} switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			} stdIn.next() stdIn.next stdIn case "AC": "AC" case "AC": S[0] ++ S[0] S 0 break; case "WA": "WA" case "WA": S[1] ++ S[1] S 1 break; case "TLE": "TLE" case "TLE": S[2] ++ S[2] S 2 break; case "RE": "RE" case "RE": S[3] ++ S[3] S 3 break; System.out.println("AC x " + S[0]) System.out.println System.out System System.out "AC x " + S[0] "AC x " S[0] S 0 System.out.println("WA x " + S[1]) System.out.println System.out System System.out "WA x " + S[1] "WA x " S[1] S 1 System.out.println("TLE x " + S[2]) System.out.println System.out System System.out "TLE x " + S[2] "TLE x " S[2] S 2 System.out.println("RE x " + S[3]) System.out.println System.out System System.out "RE x " + S[3] "RE x " S[3] S 3 String args[] args public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] S = new int[4];
		for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		}
		for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		}
		System.out.println("AC x " + S[0]);
		System.out.println("WA x " + S[1]);
		System.out.println("TLE x " + S[2]);
		System.out.println("RE x " + S[3]);
	}
} public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] S = new int[4];
		for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		}
		for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		}
		System.out.println("AC x " + S[0]);
		System.out.println("WA x " + S[1]);
		System.out.println("TLE x " + S[2]);
		System.out.println("RE x " + S[3]);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] S = new int[4];
		for(int i = 0; i < S.length; i ++) {
			S[i] = 0;
		}
		for(int i = 0; i < N; i ++) {
			switch(stdIn.next()) {
			case "AC":
				S[0] ++;
				break;
			case "WA":
				S[1] ++;
				break;
			case "TLE":
				S[2] ++;
				break;
			case "RE":
				S[3] ++;
				break;
			}
		}
		System.out.println("AC x " + S[0]);
		System.out.println("WA x " + S[1]);
		System.out.println("TLE x " + S[2]);
		System.out.println("RE x " + S[3]);
	}
}