import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);
	}
} Main public static void main(String[] args){
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);
	} main {
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);
	} int sum1 = 0; sum1 0 int sum2 = 0; sum2 0 int sum3 = 0; sum3 0 int sum4 = 0; sum4 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        } int i=0; int i=0; i 0 i < N i N i++ i++ i {
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        } {
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        } String S = in.next(); S in.next() in.next in if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				} S.equals("AC") S.equals S "AC" {
					sum1= sum1 +1;
				} sum1= sum1 +1 sum1 sum1 +1 sum1 1 if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				} S.equals("WA") S.equals S "WA" {
					sum2= sum2 +1;
				} sum2= sum2 +1 sum2 sum2 +1 sum2 1 if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				} S.equals("TLE") S.equals S "TLE" {
					sum3= sum3 +1;
				} sum3= sum3 +1 sum3 sum3 +1 sum3 1 if (S.equals("RE")){
					sum4= sum4 +1;
				} S.equals("RE") S.equals S "RE" {
					sum4= sum4 +1;
				} sum4= sum4 +1 sum4 sum4 +1 sum4 1 System.out.println("AC x " + sum1) System.out.println System.out System System.out "AC x " + sum1 "AC x " sum1 System.out.println("WA x " + sum2) System.out.println System.out System System.out "WA x " + sum2 "WA x " sum2 System.out.println("TLE x " + sum3) System.out.println System.out System System.out "TLE x " + sum3 "TLE x " sum3 System.out.println("RE x " + sum4) System.out.println System.out System System.out "RE x " + sum4 "RE x " sum4 String[] args args public class Main {
	public static void main(String[] args){
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);
	}
} public class Main {
	public static void main(String[] args){
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);
	}
}