import java.util.*;

public class Main{
  public static void main(String aargs[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String[] ss = {"AC","WA","TLE","RE"};
    int[] cnts = {0,0,0,0};
    
    for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    }
    
    for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    }
    
  }
} import java.util.*; util.* java public class Main{
  public static void main(String aargs[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String[] ss = {"AC","WA","TLE","RE"};
    int[] cnts = {0,0,0,0};
    
    for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    }
    
    for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    }
    
  }
} Main public static void main(String aargs[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String[] ss = {"AC","WA","TLE","RE"};
    int[] cnts = {0,0,0,0};
    
    for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    }
    
    for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    }
    
  } main {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String[] ss = {"AC","WA","TLE","RE"};
    int[] cnts = {0,0,0,0};
    
    for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    }
    
    for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    }
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] ss = {"AC","WA","TLE","RE"}; ss {"AC","WA","TLE","RE"} "AC" "WA" "TLE" "RE" int[] cnts = {0,0,0,0}; cnts {0,0,0,0} 0 0 0 0 for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    } int i = 0; int i = 0; i 0 i <= n i n i++ i++ i {
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    } {
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    } String r = sc.nextLine(); r sc.nextLine() sc.nextLine sc for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      } int j = 0; int j = 0; j 0 j < 4 j 4 j++ j++ j {
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      } {
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      } if(r.equals(ss[j])){
          cnts[j]++;
          break;
        } r.equals(ss[j]) r.equals r ss[j] ss j {
          cnts[j]++;
          break;
        } cnts[j]++ cnts[j] cnts j break; for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
      System.out.println(ss[i] + " x " + cnts[i]);
    } {
      System.out.println(ss[i] + " x " + cnts[i]);
    } System.out.println(ss[i] + " x " + cnts[i]) System.out.println System.out System System.out ss[i] + " x " + cnts[i] ss[i] + " x " + cnts[i] ss[i] ss i " x " cnts[i] cnts i String aargs[] aargs public class Main{
  public static void main(String aargs[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String[] ss = {"AC","WA","TLE","RE"};
    int[] cnts = {0,0,0,0};
    
    for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    }
    
    for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    }
    
  }
} public class Main{
  public static void main(String aargs[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String[] ss = {"AC","WA","TLE","RE"};
    int[] cnts = {0,0,0,0};
    
    for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    }
    
    for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    }
    
  }
} Main
import java.util.*;

public class Main{
  public static void main(String aargs[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    String[] ss = {"AC","WA","TLE","RE"};
    int[] cnts = {0,0,0,0};
    
    for(int i = 0; i <= n; i++){
      String r = sc.nextLine();
      for(int j = 0; j < 4; j++){
        if(r.equals(ss[j])){
          cnts[j]++;
          break;
        }
      }
    }
    
    for(int i = 0; i < 4; i++){
      System.out.println(ss[i] + " x " + cnts[i]);
    }
    
  }
}