import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		}
	}

} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		}
	} try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		} {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int c0 = 0; c0 0 int c1 = 0; c1 0 int c2 = 0; c2 0 int c3 = 0; c3 0 for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			} int  i = 0 ; int  i = 0 ; i 0 i < n i n i++ i++ i {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			} {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			} String s = sc.next(); s sc.next() sc.next sc switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				} s case "AC": "AC" case "AC": c0++ c0 break; case "WA": "WA" case "WA": c1++ c1 break; case "TLE": "TLE" case "TLE": c2++ c2 break; default: default: c3++ c3 break; System.out.println("AC x " + c0) System.out.println System.out System System.out "AC x " + c0 "AC x " c0 System.out.println("WA x " + c1) System.out.println System.out System System.out "WA x " + c1 "WA x " c1 System.out.println("TLE x " + c2) System.out.println System.out System System.out "TLE x " + c2 "TLE x " c2 System.out.println("RE x " + c3) System.out.println System.out System System.out "RE x " + c3 "RE x " c3 String[] args args public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		}
	}

} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		}
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int c0 = 0;
			int c1 = 0;
			int c2 = 0;
			int c3 = 0;
			
			for(int  i = 0 ; i < n ; i++ ) {
				String s = sc.next();
				
				switch(s) {
				case "AC":
					c0++;
					break;
				case "WA":
					c1++;
					break;
				case "TLE":
					c2++;
					break;
				default:
					c3++;
					break;
				}
				
			}
			
			System.out.println("AC x " + c0);
			System.out.println("WA x " + c1);
			System.out.println("TLE x " + c2);
			System.out.println("RE x " + c3);
		}
	}

}