import java.util.Scanner;
import java.util.*;

public class Main {

 public static void main(String[] args) {

  Scanner sc = new Scanner(System.in);
  Integer testCase = sc.nextInt();
  List<String> vA = new ArrayList < String > ();
  for (int i = 0; i < testCase; i++)
   vA.add(sc.next());

  Integer ac = 0;
  Integer wa = 0;
  Integer tle = 0;
  Integer re = 0;


  for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  }
   
   System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re));
 }

} import java.util.Scanner; Scanner java.util import java.util.*; util.* java public class Main {

 public static void main(String[] args) {

  Scanner sc = new Scanner(System.in);
  Integer testCase = sc.nextInt();
  List<String> vA = new ArrayList < String > ();
  for (int i = 0; i < testCase; i++)
   vA.add(sc.next());

  Integer ac = 0;
  Integer wa = 0;
  Integer tle = 0;
  Integer re = 0;


  for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  }
   
   System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re));
 }

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

  Scanner sc = new Scanner(System.in);
  Integer testCase = sc.nextInt();
  List<String> vA = new ArrayList < String > ();
  for (int i = 0; i < testCase; i++)
   vA.add(sc.next());

  Integer ac = 0;
  Integer wa = 0;
  Integer tle = 0;
  Integer re = 0;


  for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  }
   
   System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re));
 } main {

  Scanner sc = new Scanner(System.in);
  Integer testCase = sc.nextInt();
  List<String> vA = new ArrayList < String > ();
  for (int i = 0; i < testCase; i++)
   vA.add(sc.next());

  Integer ac = 0;
  Integer wa = 0;
  Integer tle = 0;
  Integer re = 0;


  for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  }
   
   System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re));
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer testCase = sc.nextInt(); testCase sc.nextInt() sc.nextInt sc List<String> vA = new ArrayList < String > (); vA new ArrayList < String > () for (int i = 0; i < testCase; i++)
   vA.add(sc.next()); int i = 0; int i = 0; i 0 i < testCase i testCase i++ i++ i vA.add(sc.next()); vA.add(sc.next()) vA.add vA sc.next() sc.next sc Integer ac = 0; ac 0 Integer wa = 0; wa 0 Integer tle = 0; tle 0 Integer re = 0; re 0 for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  } String v vA {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  } {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  } switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   } v case "AC": "AC" case "AC": ac++ ac break; case "WA": "WA" case "WA": wa++ wa break; case "TLE": "TLE" case "TLE": tle++ tle break; case "RE": "RE" case "RE": re++ re break; System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re)) System.out.println System.out System System.out String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re) String.format String "AC x %s \nWA x %s \nTLE x %s \nRE x %s " ac wa tle re String[] args args public class Main {

 public static void main(String[] args) {

  Scanner sc = new Scanner(System.in);
  Integer testCase = sc.nextInt();
  List<String> vA = new ArrayList < String > ();
  for (int i = 0; i < testCase; i++)
   vA.add(sc.next());

  Integer ac = 0;
  Integer wa = 0;
  Integer tle = 0;
  Integer re = 0;


  for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  }
   
   System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re));
 }

} public class Main {

 public static void main(String[] args) {

  Scanner sc = new Scanner(System.in);
  Integer testCase = sc.nextInt();
  List<String> vA = new ArrayList < String > ();
  for (int i = 0; i < testCase; i++)
   vA.add(sc.next());

  Integer ac = 0;
  Integer wa = 0;
  Integer tle = 0;
  Integer re = 0;


  for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  }
   
   System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re));
 }

} Main
import java.util.Scanner;
import java.util.*;

public class Main {

 public static void main(String[] args) {

  Scanner sc = new Scanner(System.in);
  Integer testCase = sc.nextInt();
  List<String> vA = new ArrayList < String > ();
  for (int i = 0; i < testCase; i++)
   vA.add(sc.next());

  Integer ac = 0;
  Integer wa = 0;
  Integer tle = 0;
  Integer re = 0;


  for (String v: vA) {

   switch (v) {
    case "AC":
     ac++;
     break;
    case "WA":
     wa++;
     break;
    case "TLE":
     tle++;
     break;
    case "RE":
     re++;
     break;
   }
  
  }
   
   System.out.println(String.format("AC x %s \nWA x %s \nTLE x %s \nRE x %s ",ac,wa,tle,re));
 }

}