import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			int N =sc.nextInt();
			int count = 0;
			int count2 = 0;
			int count3= 0;
			int count4 = 0;
          String A = "AC";
          String B = "WA";
          String C = "TLE";
          String D = "RE";
		for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		}
		System.out.println("AC  x  " + count);
		System.out.println("WA  x  " + count2);
		System.out.println("TLE  x  " + count3);
		System.out.println("RE  x  " + count4);
	}
} 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();
			int count = 0;
			int count2 = 0;
			int count3= 0;
			int count4 = 0;
          String A = "AC";
          String B = "WA";
          String C = "TLE";
          String D = "RE";
		for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		}
		System.out.println("AC  x  " + count);
		System.out.println("WA  x  " + count2);
		System.out.println("TLE  x  " + count3);
		System.out.println("RE  x  " + count4);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			int N =sc.nextInt();
			int count = 0;
			int count2 = 0;
			int count3= 0;
			int count4 = 0;
          String A = "AC";
          String B = "WA";
          String C = "TLE";
          String D = "RE";
		for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		}
		System.out.println("AC  x  " + count);
		System.out.println("WA  x  " + count2);
		System.out.println("TLE  x  " + count3);
		System.out.println("RE  x  " + count4);
	} main {
		Scanner sc = new Scanner(System.in);
			int N =sc.nextInt();
			int count = 0;
			int count2 = 0;
			int count3= 0;
			int count4 = 0;
          String A = "AC";
          String B = "WA";
          String C = "TLE";
          String D = "RE";
		for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		}
		System.out.println("AC  x  " + count);
		System.out.println("WA  x  " + count2);
		System.out.println("TLE  x  " + count3);
		System.out.println("RE  x  " + count4);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 0; count 0 int count2 = 0; count2 0 int count3= 0; count3 0 int count4 = 0; count4 0 String A = "AC"; A "AC" String B = "WA"; B "WA" String C = "TLE"; C "TLE" String D = "RE"; D "RE" for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		} {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		} String H = sc.next(); H sc.next() sc.next sc if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			} H.equals(A) H.equals H A {
				count++;
			} count++ count if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			} H.equals(B) H.equals H B {
				count2++;
			} count2++ count2 if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			} H.equals(C) H.equals H C {
				count3++;
			} count3++ count3 if(H.equals(D)) {
				count4++;
			} H.equals(D) H.equals H D {
				count4++;
			} count4++ count4 System.out.println("AC  x  " + count) System.out.println System.out System System.out "AC  x  " + count "AC  x  " count System.out.println("WA  x  " + count2) System.out.println System.out System System.out "WA  x  " + count2 "WA  x  " count2 System.out.println("TLE  x  " + count3) System.out.println System.out System System.out "TLE  x  " + count3 "TLE  x  " count3 System.out.println("RE  x  " + count4) System.out.println System.out System System.out "RE  x  " + count4 "RE  x  " count4 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			int N =sc.nextInt();
			int count = 0;
			int count2 = 0;
			int count3= 0;
			int count4 = 0;
          String A = "AC";
          String B = "WA";
          String C = "TLE";
          String D = "RE";
		for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		}
		System.out.println("AC  x  " + count);
		System.out.println("WA  x  " + count2);
		System.out.println("TLE  x  " + count3);
		System.out.println("RE  x  " + count4);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			int N =sc.nextInt();
			int count = 0;
			int count2 = 0;
			int count3= 0;
			int count4 = 0;
          String A = "AC";
          String B = "WA";
          String C = "TLE";
          String D = "RE";
		for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		}
		System.out.println("AC  x  " + count);
		System.out.println("WA  x  " + count2);
		System.out.println("TLE  x  " + count3);
		System.out.println("RE  x  " + count4);
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			int N =sc.nextInt();
			int count = 0;
			int count2 = 0;
			int count3= 0;
			int count4 = 0;
          String A = "AC";
          String B = "WA";
          String C = "TLE";
          String D = "RE";
		for(int i = 0;i < N;i++) {
			String H = sc.next();
			if(H.equals(A)) {
				count++;
			}
			else if(H.equals(B)) {
				count2++;
			}
			else if(H.equals(C)) {
				count3++;
			}
			else if(H.equals(D)) {
				count4++;
			}
		}
		System.out.println("AC  x  " + count);
		System.out.println("WA  x  " + count2);
		System.out.println("TLE  x  " + count3);
		System.out.println("RE  x  " + count4);
	}
}
