import java.io.*;
import java.util.*;
import java.awt.Point;
public class Main {
	static Scanner sc;
	static PrintWriter out;
	static final int uncal = -1;
	static final int mod = (int) (1e9)+7;
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		sc = new Scanner(System.in); 
		out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int[] a= new int[4];
		String[] as = {"AC", "WA", "TLE", "RE"};
		while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		}
		for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		}
		out.close();
	}
	static class Scanner{
		private BufferedReader br;
		private StringTokenizer st;
		public Scanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
		}
		public Scanner(String filename) throws FileNotFoundException {
			br = new BufferedReader(new FileReader(filename));
		}
		public String next() throws IOException{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public String nextLine() throws IOException {
			return br.readLine();
		}
		public int nextInt() throws IOException{
			return Integer.parseInt(next());
		}
		public long nextLong() throws IOException{
			return Long.parseLong(next());
		}
		public double nextDouble() throws IOException{
			return Double.parseDouble(next());
		}
		public int[] inArr(int n) throws Exception{
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		}
	}

} import java.io.*; io.* java import java.util.*; util.* java import java.awt.Point; Point java.awt public class Main {
	static Scanner sc;
	static PrintWriter out;
	static final int uncal = -1;
	static final int mod = (int) (1e9)+7;
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		sc = new Scanner(System.in); 
		out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int[] a= new int[4];
		String[] as = {"AC", "WA", "TLE", "RE"};
		while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		}
		for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		}
		out.close();
	}
	static class Scanner{
		private BufferedReader br;
		private StringTokenizer st;
		public Scanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
		}
		public Scanner(String filename) throws FileNotFoundException {
			br = new BufferedReader(new FileReader(filename));
		}
		public String next() throws IOException{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public String nextLine() throws IOException {
			return br.readLine();
		}
		public int nextInt() throws IOException{
			return Integer.parseInt(next());
		}
		public long nextLong() throws IOException{
			return Long.parseLong(next());
		}
		public double nextDouble() throws IOException{
			return Double.parseDouble(next());
		}
		public int[] inArr(int n) throws Exception{
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		}
	}

} Main static Scanner sc; sc static PrintWriter out; out static final int uncal = -1; uncal -1 1 static final int mod = (int) (1e9)+7; mod (int) (1e9)+7 (int) (1e9) 7 public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		sc = new Scanner(System.in); 
		out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int[] a= new int[4];
		String[] as = {"AC", "WA", "TLE", "RE"};
		while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		}
		for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		}
		out.close();
	} main {
		// TODO Auto-generated method stub
		sc = new Scanner(System.in); 
		out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int[] a= new int[4];
		String[] as = {"AC", "WA", "TLE", "RE"};
		while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		}
		for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		}
		out.close();
	} sc = new Scanner(System.in) sc new Scanner(System.in) out = new PrintWriter(System.out) out new PrintWriter(System.out) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a= new int[4]; a new int[4] 4 String[] as = {"AC", "WA", "TLE", "RE"}; as {"AC", "WA", "TLE", "RE"} "AC" "WA" "TLE" "RE" while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		} n-->0 n-- n 0 {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		} String verdict = sc.nextLine(); verdict sc.nextLine() sc.nextLine sc switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			} verdict case "AC": "AC" case "AC": a[0]++ a[0] a 0 break; case "WA": "WA" case "WA": a[1]++ a[1] a 1 break; case "TLE": "TLE" case "TLE": a[2]++ a[2] a 2 break; default: default: a[3]++ a[3] a 3 for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			out.printf("%s x %d\n", as[i], a[i]);
		} {
			out.printf("%s x %d\n", as[i], a[i]);
		} out.printf("%s x %d\n", as[i], a[i]) out.printf out "%s x %d\n" as[i] as i a[i] a i out.close() out.close out String[] args args static class Scanner{
		private BufferedReader br;
		private StringTokenizer st;
		public Scanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
		}
		public Scanner(String filename) throws FileNotFoundException {
			br = new BufferedReader(new FileReader(filename));
		}
		public String next() throws IOException{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public String nextLine() throws IOException {
			return br.readLine();
		}
		public int nextInt() throws IOException{
			return Integer.parseInt(next());
		}
		public long nextLong() throws IOException{
			return Long.parseLong(next());
		}
		public double nextDouble() throws IOException{
			return Double.parseDouble(next());
		}
		public int[] inArr(int n) throws Exception{
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		}
	} Scanner private BufferedReader br; br private StringTokenizer st; st public Scanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
		} Scanner {
			br = new BufferedReader(new InputStreamReader(in));
		} br = new BufferedReader(new InputStreamReader(in)) br new BufferedReader(new InputStreamReader(in)) InputStream in in public Scanner(String filename) throws FileNotFoundException {
			br = new BufferedReader(new FileReader(filename));
		} Scanner {
			br = new BufferedReader(new FileReader(filename));
		} br = new BufferedReader(new FileReader(filename)) br new BufferedReader(new FileReader(filename)) String filename filename public String next() throws IOException{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		} next {
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		} while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine()); st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st public String nextLine() throws IOException {
			return br.readLine();
		} nextLine {
			return br.readLine();
		} return br.readLine(); br.readLine() br.readLine br public int nextInt() throws IOException{
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() throws IOException{
			return Long.parseLong(next());
		} nextLong {
			return Long.parseLong(next());
		} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public double nextDouble() throws IOException{
			return Double.parseDouble(next());
		} nextDouble {
			return Double.parseDouble(next());
		} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public int[] inArr(int n) throws Exception{
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		} inArr {
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		} int a [] = new int[n]; a new int[n] n st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				a[i] = Integer.parseInt(next());
			} {
				a[i] = Integer.parseInt(next());
			} a[i] = Integer.parseInt(next()) a[i] a i Integer.parseInt(next()) Integer.parseInt Integer next() next return a; a int n n public class Main {
	static Scanner sc;
	static PrintWriter out;
	static final int uncal = -1;
	static final int mod = (int) (1e9)+7;
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		sc = new Scanner(System.in); 
		out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int[] a= new int[4];
		String[] as = {"AC", "WA", "TLE", "RE"};
		while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		}
		for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		}
		out.close();
	}
	static class Scanner{
		private BufferedReader br;
		private StringTokenizer st;
		public Scanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
		}
		public Scanner(String filename) throws FileNotFoundException {
			br = new BufferedReader(new FileReader(filename));
		}
		public String next() throws IOException{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public String nextLine() throws IOException {
			return br.readLine();
		}
		public int nextInt() throws IOException{
			return Integer.parseInt(next());
		}
		public long nextLong() throws IOException{
			return Long.parseLong(next());
		}
		public double nextDouble() throws IOException{
			return Double.parseDouble(next());
		}
		public int[] inArr(int n) throws Exception{
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		}
	}

} public class Main {
	static Scanner sc;
	static PrintWriter out;
	static final int uncal = -1;
	static final int mod = (int) (1e9)+7;
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		sc = new Scanner(System.in); 
		out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int[] a= new int[4];
		String[] as = {"AC", "WA", "TLE", "RE"};
		while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		}
		for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		}
		out.close();
	}
	static class Scanner{
		private BufferedReader br;
		private StringTokenizer st;
		public Scanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
		}
		public Scanner(String filename) throws FileNotFoundException {
			br = new BufferedReader(new FileReader(filename));
		}
		public String next() throws IOException{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public String nextLine() throws IOException {
			return br.readLine();
		}
		public int nextInt() throws IOException{
			return Integer.parseInt(next());
		}
		public long nextLong() throws IOException{
			return Long.parseLong(next());
		}
		public double nextDouble() throws IOException{
			return Double.parseDouble(next());
		}
		public int[] inArr(int n) throws Exception{
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		}
	}

} Main
import java.io.*;
import java.util.*;
import java.awt.Point;
public class Main {
	static Scanner sc;
	static PrintWriter out;
	static final int uncal = -1;
	static final int mod = (int) (1e9)+7;
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		sc = new Scanner(System.in); 
		out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int[] a= new int[4];
		String[] as = {"AC", "WA", "TLE", "RE"};
		while(n-->0) {
			String verdict = sc.nextLine();
			switch(verdict) {
				case "AC":
					a[0]++;
					break;
				case "WA":
					a[1]++;
					break;
				case "TLE":
					a[2]++;
					break;
				default:
					a[3]++;
			}			
		}
		for (int i = 0; i < 4; i++) {
			out.printf("%s x %d\n", as[i], a[i]);
		}
		out.close();
	}
	static class Scanner{
		private BufferedReader br;
		private StringTokenizer st;
		public Scanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
		}
		public Scanner(String filename) throws FileNotFoundException {
			br = new BufferedReader(new FileReader(filename));
		}
		public String next() throws IOException{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
		public String nextLine() throws IOException {
			return br.readLine();
		}
		public int nextInt() throws IOException{
			return Integer.parseInt(next());
		}
		public long nextLong() throws IOException{
			return Long.parseLong(next());
		}
		public double nextDouble() throws IOException{
			return Double.parseDouble(next());
		}
		public int[] inArr(int n) throws Exception{
			int a [] = new int[n];
			st = new StringTokenizer(br.readLine());
			for(int i=0;i<n;i++) {
				a[i] = Integer.parseInt(next());
			}
			return a;
		}
	}

}