import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String[] name = new String[N];
		int[] counter = new int[4];

		for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		}

		System.out.println("AC x " + counter[0]);
		System.out.println("WA x "+  counter[1]);
		System.out.println("TLE x "+counter[2]);
		System.out.println("RE x " + counter[3]);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String[] name = new String[N];
		int[] counter = new int[4];

		for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		}

		System.out.println("AC x " + counter[0]);
		System.out.println("WA x "+  counter[1]);
		System.out.println("TLE x "+counter[2]);
		System.out.println("RE x " + counter[3]);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String[] name = new String[N];
		int[] counter = new int[4];

		for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		}

		System.out.println("AC x " + counter[0]);
		System.out.println("WA x "+  counter[1]);
		System.out.println("TLE x "+counter[2]);
		System.out.println("RE x " + counter[3]);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String[] name = new String[N];
		int[] counter = new int[4];

		for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		}

		System.out.println("AC x " + counter[0]);
		System.out.println("WA x "+  counter[1]);
		System.out.println("TLE x "+counter[2]);
		System.out.println("RE x " + counter[3]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] name = new String[N]; name new String[N] N int[] counter = new int[4]; counter new int[4] 4 for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		} {
			name[i]  = sc.next();

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

		for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		}

		System.out.println("AC x " + counter[0]);
		System.out.println("WA x "+  counter[1]);
		System.out.println("TLE x "+counter[2]);
		System.out.println("RE x " + counter[3]);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String[] name = new String[N];
		int[] counter = new int[4];

		for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		}

		System.out.println("AC x " + counter[0]);
		System.out.println("WA x "+  counter[1]);
		System.out.println("TLE x "+counter[2]);
		System.out.println("RE x " + counter[3]);
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String[] name = new String[N];
		int[] counter = new int[4];

		for(int i = 0; i < N; i++) {
			name[i]  = sc.next();

			switch(name[i]) {
				case "AC":
					counter[0]++;
					break;
				case "WA":
					counter[1]++;
					break;
				case "TLE":
					counter[2]++;
					break;
				case "RE":
					counter[3]++;
					break;
				default:
					break;
			}
		}

		System.out.println("AC x " + counter[0]);
		System.out.println("WA x "+  counter[1]);
		System.out.println("TLE x "+counter[2]);
		System.out.println("RE x " + counter[3]);
	}
}