import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 
import java.util.*;
public class Main
{   
static class FastReader 	
{		
BufferedReader br; 		
StringTokenizer st; 		
public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} 		
String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} 
		
int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} 
		
long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} 
		
double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } 
		
		String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } 	
	 }
	
	 public static void main(String[] args){
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} 
}  import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util import java.util.StringTokenizer; StringTokenizer java.util import java.util.*; util.* java public class Main
{   
static class FastReader 	
{		
BufferedReader br; 		
StringTokenizer st; 		
public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} 		
String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} 
		
int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} 
		
long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} 
		
double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } 
		
		String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } 	
	 }
	
	 public static void main(String[] args){
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} 
} Main public static void main(String[] args){
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} main {
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} FastReader scan=new FastReader(); scan new FastReader() int t = scan.nextInt(); t scan.nextInt() scan.nextInt scan HashMap<String,Integer> map = new HashMap<>(); map new HashMap<>() for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			} int i=0; int i=0; i 0 i<t i t i++ i++ i {
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			} {
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			} String s = scan.next(); s scan.next() scan.next scan if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1); map.containsKey(s) map.containsKey map s map.put(s,map.get(s)+1) map.put map s map.get(s)+1 map.get(s) map.get map s 1 map.put(s,1) map.put map s 1 if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0); map.containsKey("AC") map.containsKey map "AC" System.out.println("AC x " + map.get("AC")) System.out.println System.out System System.out "AC x " + map.get("AC") "AC x " map.get("AC") map.get map "AC" System.out.println("AC x " + 0) System.out.println System.out System System.out "AC x " + 0 "AC x " 0 if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0); map.containsKey("WA") map.containsKey map "WA" System.out.println("WA x " + map.get("WA")) System.out.println System.out System System.out "WA x " + map.get("WA") "WA x " map.get("WA") map.get map "WA" System.out.println("WA x " + 0) System.out.println System.out System System.out "WA x " + 0 "WA x " 0 if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0); map.containsKey("TLE") map.containsKey map "TLE" System.out.println("TLE x " + map.get("TLE")) System.out.println System.out System System.out "TLE x " + map.get("TLE") "TLE x " map.get("TLE") map.get map "TLE" System.out.println("TLE x " + 0) System.out.println System.out System System.out "TLE x " + 0 "TLE x " 0 if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0); map.containsKey("RE") map.containsKey map "RE" System.out.println("RE x " + map.get("RE")) System.out.println System.out System System.out "RE x " + map.get("RE") "RE x " map.get("RE") map.get map "RE" System.out.println("RE x " + 0) System.out.println System.out System System.out "RE x " + 0 "RE x " 0 String[] args args static class FastReader 	
{		
BufferedReader br; 		
StringTokenizer st; 		
public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} 		
String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} 
		
int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} 
		
long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} 
		
double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } 
		
		String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } 	
	 } FastReader BufferedReader br; br StringTokenizer st; st public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} FastReader { 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} br = new BufferedReader(new	InputStreamReader(System.in)) br new BufferedReader(new	InputStreamReader(System.in)) String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} next { 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st { 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} IOException e { 					
e.printStackTrace(); 				
} e.printStackTrace() e.printStackTrace e { 					
st = new StringTokenizer(br.readLine()); 				
} st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} nextInt { 			
return Integer.parseInt(next()); 		
} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} nextLong { 			
return Long.parseLong(next()); 		
} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } nextDouble { 			
return Double.parseDouble(next()); 		
		 } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } nextLine { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } String str = ""; str "" try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } IOException e { 				
				 e.printStackTrace(); 			
			 } e.printStackTrace() e.printStackTrace e { 				
				 str = br.readLine(); 			
			 } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main
{   
static class FastReader 	
{		
BufferedReader br; 		
StringTokenizer st; 		
public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} 		
String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} 
		
int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} 
		
long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} 
		
double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } 
		
		String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } 	
	 }
	
	 public static void main(String[] args){
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} 
} public class Main
{   
static class FastReader 	
{		
BufferedReader br; 		
StringTokenizer st; 		
public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} 		
String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} 
		
int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} 
		
long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} 
		
double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } 
		
		String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } 	
	 }
	
	 public static void main(String[] args){
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} 
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 
import java.util.*;
public class Main
{   
static class FastReader 	
{		
BufferedReader br; 		
StringTokenizer st; 		
public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} 		
String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} 
		
int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} 
		
long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} 
		
double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } 
		
		String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } 	
	 }
	
	 public static void main(String[] args){
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} 
} 
