import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  int []po=new int[4];
  for(int i=0;i<n;i++){
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  }
  System.out.println("AC x "+po[0]);
  System.out.println("WA x "+po[1]);
  System.out.println("TLE x "+po[2]);
  System.out.println("RE x "+po[3]);
}
} import java.util.*; util.* java class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  int []po=new int[4];
  for(int i=0;i<n;i++){
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  }
  System.out.println("AC x "+po[0]);
  System.out.println("WA x "+po[1]);
  System.out.println("TLE x "+po[2]);
  System.out.println("RE x "+po[3]);
}
} Main public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  int []po=new int[4];
  for(int i=0;i<n;i++){
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  }
  System.out.println("AC x "+po[0]);
  System.out.println("WA x "+po[1]);
  System.out.println("TLE x "+po[2]);
  System.out.println("RE x "+po[3]);
} main {
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  int []po=new int[4];
  for(int i=0;i<n;i++){
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  }
  System.out.println("AC x "+po[0]);
  System.out.println("WA x "+po[1]);
  System.out.println("TLE x "+po[2]);
  System.out.println("RE x "+po[3]);
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int []po=new int[4]; po new int[4] 4 for(int i=0;i<n;i++){
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  } {
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  } String p=sc.next(); p sc.next() sc.next sc po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++ po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3] po p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3 p.equals("AC") p.equals p "AC" 0 p.equals("WA")?1:p.equals("TLE")?2:3 p.equals("WA") p.equals p "WA" 1 p.equals("TLE")?2:3 p.equals("TLE") p.equals p "TLE" 2 3 System.out.println("AC x "+po[0]) System.out.println System.out System System.out "AC x "+po[0] "AC x " po[0] po 0 System.out.println("WA x "+po[1]) System.out.println System.out System System.out "WA x "+po[1] "WA x " po[1] po 1 System.out.println("TLE x "+po[2]) System.out.println System.out System System.out "TLE x "+po[2] "TLE x " po[2] po 2 System.out.println("RE x "+po[3]) System.out.println System.out System System.out "RE x "+po[3] "RE x " po[3] po 3 String[]args args
import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  int []po=new int[4];
  for(int i=0;i<n;i++){
    String p=sc.next();
  po[p.equals("AC")?0:p.equals("WA")?1:p.equals("TLE")?2:3]++;
  }
  System.out.println("AC x "+po[0]);
  System.out.println("WA x "+po[1]);
  System.out.println("TLE x "+po[2]);
  System.out.println("RE x "+po[3]);
}
}
