import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> map = new HashMap<>();
		String[] ans = new String[]{"AC", "WA", "TLE", "RE"};
		int[] counts = new int[ans.length];
		for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		}
		System.out.print(sb);
	}
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> map = new HashMap<>();
		String[] ans = new String[]{"AC", "WA", "TLE", "RE"};
		int[] counts = new int[ans.length];
		for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		}
		System.out.print(sb);
	}
} Main public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> map = new HashMap<>();
		String[] ans = new String[]{"AC", "WA", "TLE", "RE"};
		int[] counts = new int[ans.length];
		for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		}
		System.out.print(sb);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> map = new HashMap<>();
		String[] ans = new String[]{"AC", "WA", "TLE", "RE"};
		int[] counts = new int[ans.length];
		for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		}
		System.out.print(sb);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc HashMap<String, Integer> map = new HashMap<>(); map new HashMap<>() String[] ans = new String[]{"AC", "WA", "TLE", "RE"}; ans new String[]{"AC", "WA", "TLE", "RE"} int[] counts = new int[ans.length]; counts new int[ans.length] ans.length ans ans.length for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		} {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		} String s = sc.next(); s sc.next() sc.next sc for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    } int j = 0; int j = 0; j 0 j < ans.length j ans.length ans ans.length j++ j++ j {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    } {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    } if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        } s.equals(ans[j]) s.equals s ans[j] ans j {
		            counts[j]++;
		            break;
		        } counts[j]++ counts[j] counts j break; StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		} int i = 0; int i = 0; i 0 i < ans.length i ans.length ans ans.length i++ i++ i {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		} {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		} sb.append(ans[i]).append(" x ").append(counts[i]).append("\n") sb.append(ans[i]).append(" x ").append(counts[i]).append sb.append(ans[i]).append(" x ").append(counts[i]) sb.append(ans[i]).append(" x ").append sb.append(ans[i]).append(" x ") sb.append(ans[i]).append sb.append(ans[i]) sb.append sb ans[i] ans i " x " counts[i] counts i "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> map = new HashMap<>();
		String[] ans = new String[]{"AC", "WA", "TLE", "RE"};
		int[] counts = new int[ans.length];
		for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		}
		System.out.print(sb);
	}
} public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> map = new HashMap<>();
		String[] ans = new String[]{"AC", "WA", "TLE", "RE"};
		int[] counts = new int[ans.length];
		for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		}
		System.out.print(sb);
	}
} Main
import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		HashMap<String, Integer> map = new HashMap<>();
		String[] ans = new String[]{"AC", "WA", "TLE", "RE"};
		int[] counts = new int[ans.length];
		for (int i = 0; i < n; i++) {
		    String s = sc.next();
		    for (int j = 0; j < ans.length; j++) {
		        if (s.equals(ans[j])) {
		            counts[j]++;
		            break;
		        }
		    }
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < ans.length; i++) {
		    sb.append(ans[i]).append(" x ").append(counts[i]).append("\n");
		}
		System.out.print(sb);
	}
}
