import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	  Scanner scan = new Scanner(System.in);
	  int ac = 0;
	  int wa = 0;
	  int tle = 0;
	  int re = 0;
	  int num = scan.nextInt();
	   String test = "";
	  for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  }
	  
	  System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
	  Scanner scan = new Scanner(System.in);
	  int ac = 0;
	  int wa = 0;
	  int tle = 0;
	  int re = 0;
	  int num = scan.nextInt();
	   String test = "";
	  for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  }
	  
	  System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re);
  }
} Main public static void main(String[] args){
	  Scanner scan = new Scanner(System.in);
	  int ac = 0;
	  int wa = 0;
	  int tle = 0;
	  int re = 0;
	  int num = scan.nextInt();
	   String test = "";
	  for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  }
	  
	  System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re);
  } main {
	  Scanner scan = new Scanner(System.in);
	  int ac = 0;
	  int wa = 0;
	  int tle = 0;
	  int re = 0;
	  int num = scan.nextInt();
	   String test = "";
	  for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  }
	  
	  System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int ac = 0; ac 0 int wa = 0; wa 0 int tle = 0; tle 0 int re = 0; re 0 int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan String test = ""; test "" for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  } int i=0; int i=0; i 0 i<num+1 i num+1 num 1 i++ i++ i {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  } {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  } test = scan.nextLine() test scan.nextLine() scan.nextLine scan if (test.equals("AC")) {
			  ac++; 
		  } test.equals("AC") test.equals test "AC" {
			  ac++; 
		  } ac++ ac if (test.equals("WA")) {
			  wa++;
		  } test.equals("WA") test.equals test "WA" {
			  wa++;
		  } wa++ wa if (test.equals("TLE")) {
			  tle++;
		  } test.equals("TLE") test.equals test "TLE" {
			  tle++;
		  } tle++ tle if (test.equals("RE")) {
			  re++;
		  } test.equals("RE") test.equals test "RE" {
			  re++;
		  } re++ re System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re) System.out.println System.out System System.out "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re "\nRE x " tle "\nTLE x " wa "\nWA x " "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re "AC x " ac "\nWA x " wa "\nTLE x " tle "\nRE x " re String[] args args public class Main{
  public static void main(String[] args){
	  Scanner scan = new Scanner(System.in);
	  int ac = 0;
	  int wa = 0;
	  int tle = 0;
	  int re = 0;
	  int num = scan.nextInt();
	   String test = "";
	  for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  }
	  
	  System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re);
  }
} public class Main{
  public static void main(String[] args){
	  Scanner scan = new Scanner(System.in);
	  int ac = 0;
	  int wa = 0;
	  int tle = 0;
	  int re = 0;
	  int num = scan.nextInt();
	   String test = "";
	  for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  }
	  
	  System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re);
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	  Scanner scan = new Scanner(System.in);
	  int ac = 0;
	  int wa = 0;
	  int tle = 0;
	  int re = 0;
	  int num = scan.nextInt();
	   String test = "";
	  for(int i=0;i<num+1;i++) {
		  test = scan.nextLine();
		  if (test.equals("AC")) {
			  ac++; 
		  }
		  if (test.equals("WA")) {
			  wa++;
		  }
		  if (test.equals("TLE")) {
			  tle++;
		  }
		  if (test.equals("RE")) {
			  re++;
		  }
	  }
	  
	  System.out.println(
			  "AC x " + ac+
			  "\nWA x " + wa+
			  "\nTLE x "+ tle+
			  "\nRE x " + re);
  }
}