import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String[] c = new String[n];
    String[] results = { "AC", "WA", "TLE", "RE" };
    int[] resultCnt = { 0, 0, 0, 0 };
    for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    }
    for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    }
    sc.close();
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String[] c = new String[n];
    String[] results = { "AC", "WA", "TLE", "RE" };
    int[] resultCnt = { 0, 0, 0, 0 };
    for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    }
    for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    }
    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String[] c = new String[n];
    String[] results = { "AC", "WA", "TLE", "RE" };
    int[] resultCnt = { 0, 0, 0, 0 };
    for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    }
    for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    }
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String[] c = new String[n];
    String[] results = { "AC", "WA", "TLE", "RE" };
    int[] resultCnt = { 0, 0, 0, 0 };
    for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    }
    for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    }
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] c = new String[n]; c new String[n] n String[] results = { "AC", "WA", "TLE", "RE" }; results { "AC", "WA", "TLE", "RE" } "AC" "WA" "TLE" "RE" int[] resultCnt = { 0, 0, 0, 0 }; resultCnt { 0, 0, 0, 0 } 0 0 0 0 for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    } int cnt = 0; int cnt = 0; cnt 0 cnt < n cnt n cnt++ cnt++ cnt {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    } {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    } c[cnt] = sc.next() c[cnt] c cnt sc.next() sc.next sc for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      } int cntj = 0; int cntj = 0; cntj 0 cntj < 4 cntj 4 cntj++ cntj++ cntj {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      } {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      } if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        } c[cnt].equals(results[cntj]) c[cnt].equals c[cnt] c cnt results[cntj] results cntj {
          resultCnt[cntj] += 1;
        } resultCnt[cntj] += 1 resultCnt[cntj] resultCnt cntj 1 for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    } int cnt = 0; int cnt = 0; cnt 0 cnt < 4 cnt 4 cnt++ cnt++ cnt {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    } {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    } System.out.println(results[cnt] + " x " + resultCnt[cnt]) System.out.println System.out System System.out results[cnt] + " x " + resultCnt[cnt] results[cnt] + " x " + resultCnt[cnt] results[cnt] results cnt " x " resultCnt[cnt] resultCnt cnt sc.close() sc.close sc String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String[] c = new String[n];
    String[] results = { "AC", "WA", "TLE", "RE" };
    int[] resultCnt = { 0, 0, 0, 0 };
    for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    }
    for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    }
    sc.close();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String[] c = new String[n];
    String[] results = { "AC", "WA", "TLE", "RE" };
    int[] resultCnt = { 0, 0, 0, 0 };
    for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    }
    for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    }
    sc.close();
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String[] c = new String[n];
    String[] results = { "AC", "WA", "TLE", "RE" };
    int[] resultCnt = { 0, 0, 0, 0 };
    for (int cnt = 0; cnt < n; cnt++) {
      c[cnt] = sc.next();
      for (int cntj = 0; cntj < 4; cntj++) {
        if (c[cnt].equals(results[cntj])) {
          resultCnt[cntj] += 1;
        }
      }
    }
    for (int cnt = 0; cnt < 4; cnt++) {
      System.out.println(results[cnt] + " x " + resultCnt[cnt]);
    }
    sc.close();
  }
}