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