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