import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Random;
import java.util.Scanner;
import java.util.Stack;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.Vector;

public class Main {
	static class FastScanner{//用于快速读入大量数据
		BufferedReader br;
		StringTokenizer st;
		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		}
		public void eat(String s) {
			st = new StringTokenizer(s);
		}
		public String nextLine() {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		}
		public boolean hasNext() {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		}
		public String next() {
			hasNext();
			return st.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}

	static FastScanner cin = new FastScanner(System.in);//快读
	static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出
	
	   public static void main(String args[]) {
		 int t;
		 t=cin.nextInt();
		 HashMap<String,Integer>mp=new HashMap<>();
         while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 }
         if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         }
         if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            }
         if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             }if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             }
         
         
         out.flush();
	   }
} import java.io.BufferedReader; BufferedReader java.io import java.io.BufferedWriter; BufferedWriter java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.OutputStreamWriter; OutputStreamWriter java.io import java.io.PrintWriter; PrintWriter java.io import java.math.BigInteger; BigInteger java.math import java.util.Arrays; Arrays java.util import java.util.HashMap; HashMap java.util import java.util.Random; Random java.util import java.util.Scanner; Scanner java.util import java.util.Stack; Stack java.util import java.util.StringTokenizer; StringTokenizer java.util import java.util.TreeMap; TreeMap java.util import java.util.Vector; Vector java.util public class Main {
	static class FastScanner{//用于快速读入大量数据
		BufferedReader br;
		StringTokenizer st;
		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		}
		public void eat(String s) {
			st = new StringTokenizer(s);
		}
		public String nextLine() {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		}
		public boolean hasNext() {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		}
		public String next() {
			hasNext();
			return st.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}

	static FastScanner cin = new FastScanner(System.in);//快读
	static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出
	
	   public static void main(String args[]) {
		 int t;
		 t=cin.nextInt();
		 HashMap<String,Integer>mp=new HashMap<>();
         while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 }
         if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         }
         if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            }
         if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             }if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             }
         
         
         out.flush();
	   }
} Main static FastScanner cin = new FastScanner(System.in);//快读 cin new FastScanner(System.in) static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出 out new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))) public static void main(String args[]) {
		 int t;
		 t=cin.nextInt();
		 HashMap<String,Integer>mp=new HashMap<>();
         while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 }
         if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         }
         if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            }
         if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             }if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             }
         
         
         out.flush();
	   } main {
		 int t;
		 t=cin.nextInt();
		 HashMap<String,Integer>mp=new HashMap<>();
         while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 }
         if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         }
         if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            }
         if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             }if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             }
         
         
         out.flush();
	   } int t; t t=cin.nextInt() t cin.nextInt() cin.nextInt cin HashMap<String,Integer>mp=new HashMap<>(); mp new HashMap<>() while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 } t-->0 t-- t 0 {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 } String str; str str=cin.next() str cin.next() cin.next cin if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     } mp.containsKey(str) mp.containsKey mp str {
		     mp.put(str,mp.get(str)+1);
		     } mp.put(str,mp.get(str)+1) mp.put mp str mp.get(str)+1 mp.get(str) mp.get mp str 1 {
		    	 mp.put(str, 1);
		     } mp.put(str, 1) mp.put mp str 1 if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         } mp.containsKey("AC") mp.containsKey mp "AC" {
         out.println("AC x "+mp.get("AC"));
         } out.println("AC x "+mp.get("AC")) out.println out "AC x "+mp.get("AC") "AC x " mp.get("AC") mp.get mp "AC" {
        	 out.println("AC x 0");
         } out.println("AC x 0") out.println out "AC x 0" if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            } mp.containsKey("WA") mp.containsKey mp "WA" {
             out.println("WA x "+mp.get("WA"));
             } out.println("WA x "+mp.get("WA")) out.println out "WA x "+mp.get("WA") "WA x " mp.get("WA") mp.get mp "WA" {
            	 out.println("WA x 0");
            } out.println("WA x 0") out.println out "WA x 0" if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             } mp.containsKey("TLE") mp.containsKey mp "TLE" {
             out.println("TLE x "+mp.get("TLE"));
             } out.println("TLE x "+mp.get("TLE")) out.println out "TLE x "+mp.get("TLE") "TLE x " mp.get("TLE") mp.get mp "TLE" {
            	 out.println("TLE x 0");
             } out.println("TLE x 0") out.println out "TLE x 0" if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             } mp.containsKey("RE") mp.containsKey mp "RE" {
                 out.println("RE x "+mp.get("RE"));
             } out.println("RE x "+mp.get("RE")) out.println out "RE x "+mp.get("RE") "RE x " mp.get("RE") mp.get mp "RE" {
            	 out.println("RE x 0");
             } out.println("RE x 0") out.println out "RE x 0" out.flush() out.flush out String args[] args static class FastScanner{//用于快速读入大量数据
		BufferedReader br;
		StringTokenizer st;
		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		}
		public void eat(String s) {
			st = new StringTokenizer(s);
		}
		public String nextLine() {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		}
		public boolean hasNext() {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		}
		public String next() {
			hasNext();
			return st.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	} FastScanner BufferedReader br; br StringTokenizer st; st public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		} FastScanner {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		} br = new BufferedReader(new InputStreamReader(in),16384) br new BufferedReader(new InputStreamReader(in),16384) eat("") eat "" InputStream in in public void eat(String s) {
			st = new StringTokenizer(s);
		} eat {
			st = new StringTokenizer(s);
		} st = new StringTokenizer(s) st new StringTokenizer(s) String s s public String nextLine() {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		} nextLine {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		} try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			} catch (IOException e) {
				return null;
			} IOException e {
				return null;
			} return null; null {
				return br.readLine();
			} return br.readLine(); br.readLine() br.readLine br public boolean hasNext() {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		} hasNext {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		} while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			} !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			} String s = nextLine(); s nextLine() nextLine if(s==null) return false; s==null s null return false; false eat(s) eat s return true; true public String next() {
			hasNext();
			return st.nextToken();
		} next {
			hasNext();
			return st.nextToken();
		} hasNext() hasNext return st.nextToken(); st.nextToken() st.nextToken st public int nextInt() {
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public class Main {
	static class FastScanner{//用于快速读入大量数据
		BufferedReader br;
		StringTokenizer st;
		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		}
		public void eat(String s) {
			st = new StringTokenizer(s);
		}
		public String nextLine() {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		}
		public boolean hasNext() {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		}
		public String next() {
			hasNext();
			return st.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}

	static FastScanner cin = new FastScanner(System.in);//快读
	static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出
	
	   public static void main(String args[]) {
		 int t;
		 t=cin.nextInt();
		 HashMap<String,Integer>mp=new HashMap<>();
         while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 }
         if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         }
         if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            }
         if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             }if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             }
         
         
         out.flush();
	   }
} public class Main {
	static class FastScanner{//用于快速读入大量数据
		BufferedReader br;
		StringTokenizer st;
		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		}
		public void eat(String s) {
			st = new StringTokenizer(s);
		}
		public String nextLine() {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		}
		public boolean hasNext() {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		}
		public String next() {
			hasNext();
			return st.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}

	static FastScanner cin = new FastScanner(System.in);//快读
	static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出
	
	   public static void main(String args[]) {
		 int t;
		 t=cin.nextInt();
		 HashMap<String,Integer>mp=new HashMap<>();
         while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 }
         if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         }
         if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            }
         if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             }if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             }
         
         
         out.flush();
	   }
} Main
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Random;
import java.util.Scanner;
import java.util.Stack;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.Vector;

public class Main {
	static class FastScanner{//用于快速读入大量数据
		BufferedReader br;
		StringTokenizer st;
		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in),16384);
			eat("");
		}
		public void eat(String s) {
			st = new StringTokenizer(s);
		}
		public String nextLine() {
			try {
				return br.readLine();
			} catch (IOException e) {
				return null;
			}
		}
		public boolean hasNext() {
			while(!st.hasMoreTokens()) {
				String s = nextLine();
				if(s==null) return false;
				eat(s);
			}
			return true;
		}
		public String next() {
			hasNext();
			return st.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}

	static FastScanner cin = new FastScanner(System.in);//快读
	static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出
	
	   public static void main(String args[]) {
		 int t;
		 t=cin.nextInt();
		 HashMap<String,Integer>mp=new HashMap<>();
         while(t-->0) {
		     String str;
		     str=cin.next();
		     if(mp.containsKey(str)) {
		     mp.put(str,mp.get(str)+1);
		     }
		     else {
		    	 mp.put(str, 1);
		     }
        	 
		 }
         if(mp.containsKey("AC")) {
         out.println("AC x "+mp.get("AC"));
         }
         else {
        	 out.println("AC x 0");
         }
         if(mp.containsKey("WA")) {
             out.println("WA x "+mp.get("WA"));
             }
             else {
            	 out.println("WA x 0");
            }
         if(mp.containsKey("TLE")) {
             out.println("TLE x "+mp.get("TLE"));
             }
             else {
            	 out.println("TLE x 0");
             }if(mp.containsKey("RE")) {
                 out.println("RE x "+mp.get("RE"));
             }
             else {
            	 out.println("RE x 0");
             }
         
         
         out.flush();
	   }
}
