
class Main{

public static void main (String[] args) {

	java.util.Scanner sc = new java.util.Scanner(System.in);

	int N = sc.nextInt();

	int kosuu [] = new int [4];

	for (int i=0; i<N; i++) {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	}

	System.out.print("AC x ");
	System.out.println(kosuu[0]);
	System.out.print("WA x ");
	System.out.println(kosuu[1]);
	System.out.print("TLE x ");
	System.out.println(kosuu[2]);
	System.out.print("RE x ");
	System.out.println(kosuu[3]);

	sc.close();;

}


}
 class Main{

public static void main (String[] args) {

	java.util.Scanner sc = new java.util.Scanner(System.in);

	int N = sc.nextInt();

	int kosuu [] = new int [4];

	for (int i=0; i<N; i++) {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	}

	System.out.print("AC x ");
	System.out.println(kosuu[0]);
	System.out.print("WA x ");
	System.out.println(kosuu[1]);
	System.out.print("TLE x ");
	System.out.println(kosuu[2]);
	System.out.print("RE x ");
	System.out.println(kosuu[3]);

	sc.close();;

}


} Main public static void main (String[] args) {

	java.util.Scanner sc = new java.util.Scanner(System.in);

	int N = sc.nextInt();

	int kosuu [] = new int [4];

	for (int i=0; i<N; i++) {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	}

	System.out.print("AC x ");
	System.out.println(kosuu[0]);
	System.out.print("WA x ");
	System.out.println(kosuu[1]);
	System.out.print("TLE x ");
	System.out.println(kosuu[2]);
	System.out.print("RE x ");
	System.out.println(kosuu[3]);

	sc.close();;

} main {

	java.util.Scanner sc = new java.util.Scanner(System.in);

	int N = sc.nextInt();

	int kosuu [] = new int [4];

	for (int i=0; i<N; i++) {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	}

	System.out.print("AC x ");
	System.out.println(kosuu[0]);
	System.out.print("WA x ");
	System.out.println(kosuu[1]);
	System.out.print("TLE x ");
	System.out.println(kosuu[2]);
	System.out.print("RE x ");
	System.out.println(kosuu[3]);

	sc.close();;

} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int kosuu [] = new int [4]; kosuu new int [4] 4 for (int i=0; i<N; i++) {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	} {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	} String temp = sc.next(); temp sc.next() sc.next sc if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		} temp.equals("AC") temp.equals temp "AC" {
			kosuu[0]++;
		} kosuu[0]++ kosuu[0] kosuu 0 if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		} temp.equals("WA") temp.equals temp "WA" {
			kosuu[1]++;
		} kosuu[1]++ kosuu[1] kosuu 1 if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		} temp.equals("TLE") temp.equals temp "TLE" {
			kosuu[2]++;
		} kosuu[2]++ kosuu[2] kosuu 2 {
			kosuu[3]++;
		} kosuu[3]++ kosuu[3] kosuu 3 System.out.print("AC x ") System.out.print System.out System System.out "AC x " System.out.println(kosuu[0]) System.out.println System.out System System.out kosuu[0] kosuu 0 System.out.print("WA x ") System.out.print System.out System System.out "WA x " System.out.println(kosuu[1]) System.out.println System.out System System.out kosuu[1] kosuu 1 System.out.print("TLE x ") System.out.print System.out System System.out "TLE x " System.out.println(kosuu[2]) System.out.println System.out System System.out kosuu[2] kosuu 2 System.out.print("RE x ") System.out.print System.out System System.out "RE x " System.out.println(kosuu[3]) System.out.println System.out System System.out kosuu[3] kosuu 3 sc.close() sc.close sc String[] args args

class Main{

public static void main (String[] args) {

	java.util.Scanner sc = new java.util.Scanner(System.in);

	int N = sc.nextInt();

	int kosuu [] = new int [4];

	for (int i=0; i<N; i++) {
		String temp = sc.next();
		if (temp.equals("AC")) {
			kosuu[0]++;
		} else if (temp.equals("WA")) {
			kosuu[1]++;
		} else if (temp.equals("TLE")) {
			kosuu[2]++;
		} else {
			kosuu[3]++;
		}
	}

	System.out.print("AC x ");
	System.out.println(kosuu[0]);
	System.out.print("WA x ");
	System.out.println(kosuu[1]);
	System.out.print("TLE x ");
	System.out.println(kosuu[2]);
	System.out.print("RE x ");
	System.out.println(kosuu[3]);

	sc.close();;

}


}

