import java.util.*;
public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int AC = 0, WA = 0, TLE = 0, RE = 0;
    for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    }
    int[] ans = {AC,WA,TLE,RE};
    String[] array = {"AC","WA","TLE","RE"};
    for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int AC = 0, WA = 0, TLE = 0, RE = 0;
    for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    }
    int[] ans = {AC,WA,TLE,RE};
    String[] array = {"AC","WA","TLE","RE"};
    for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    }
  }
} Main public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int AC = 0, WA = 0, TLE = 0, RE = 0;
    for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    }
    int[] ans = {AC,WA,TLE,RE};
    String[] array = {"AC","WA","TLE","RE"};
    for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int AC = 0, WA = 0, TLE = 0, RE = 0;
    for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    }
    int[] ans = {AC,WA,TLE,RE};
    String[] array = {"AC","WA","TLE","RE"};
    for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int AC = 0 AC 0 WA = 0 WA 0 TLE = 0 TLE 0 RE = 0; RE 0 for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    } {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    } String num = sc.next(); num sc.next() sc.next sc switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        } num case "AC": "AC" case "AC": AC += 1 AC 1 break; case "WA": "WA" case "WA": WA += 1 WA 1 break; case "TLE": "TLE" case "TLE": TLE += 1 TLE 1 break; case "RE": "RE" case "RE": RE += 1 RE 1 break; int[] ans = {AC,WA,TLE,RE}; ans {AC,WA,TLE,RE} AC WA TLE RE String[] array = {"AC","WA","TLE","RE"}; array {"AC","WA","TLE","RE"} "AC" "WA" "TLE" "RE" for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
        System.out.println(array[i]+" x "+ans[i]);
    } {
        System.out.println(array[i]+" x "+ans[i]);
    } System.out.println(array[i]+" x "+ans[i]) System.out.println System.out System System.out array[i]+" x "+ans[i] array[i]+" x "+ans[i] array[i] array i " x " ans[i] ans i String[] args args public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int AC = 0, WA = 0, TLE = 0, RE = 0;
    for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    }
    int[] ans = {AC,WA,TLE,RE};
    String[] array = {"AC","WA","TLE","RE"};
    for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    }
  }
} public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int AC = 0, WA = 0, TLE = 0, RE = 0;
    for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    }
    int[] ans = {AC,WA,TLE,RE};
    String[] array = {"AC","WA","TLE","RE"};
    for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    }
  }
} Main
import java.util.*;
public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int AC = 0, WA = 0, TLE = 0, RE = 0;
    for (int i=0; i<N; i++) {
        String num = sc.next();
    	switch (num) {
          case "AC": AC += 1;
            break;
          case "WA": WA += 1;
            break;
          case "TLE": TLE += 1;
            break;
          case "RE": RE += 1;
            break;
        }
    }
    int[] ans = {AC,WA,TLE,RE};
    String[] array = {"AC","WA","TLE","RE"};
    for (int i=0; i<4; i++) {
        System.out.println(array[i]+" x "+ans[i]);
    }
  }
}