import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		int te=sc.nextInt();
		Map <String,Integer> mp=new HashMap<>();
		String s=new String();
		mp.put("AC",0);
		mp.put("WA",0);
		mp.put("TLE",0);
		mp.put("RE",0);
		while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		}
		System.out.println("AC x "+mp.get("AC"));
		System.out.println("WA x "+mp.get("WA"));
		System.out.println("TLE x "+mp.get("TLE"));
		System.out.println("RE x "+mp.get("RE"));
	}
}; import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		int te=sc.nextInt();
		Map <String,Integer> mp=new HashMap<>();
		String s=new String();
		mp.put("AC",0);
		mp.put("WA",0);
		mp.put("TLE",0);
		mp.put("RE",0);
		while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		}
		System.out.println("AC x "+mp.get("AC"));
		System.out.println("WA x "+mp.get("WA"));
		System.out.println("TLE x "+mp.get("TLE"));
		System.out.println("RE x "+mp.get("RE"));
	}
} Main public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		int te=sc.nextInt();
		Map <String,Integer> mp=new HashMap<>();
		String s=new String();
		mp.put("AC",0);
		mp.put("WA",0);
		mp.put("TLE",0);
		mp.put("RE",0);
		while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		}
		System.out.println("AC x "+mp.get("AC"));
		System.out.println("WA x "+mp.get("WA"));
		System.out.println("TLE x "+mp.get("TLE"));
		System.out.println("RE x "+mp.get("RE"));
	} main {
		
		Scanner sc=new Scanner(System.in);
		int te=sc.nextInt();
		Map <String,Integer> mp=new HashMap<>();
		String s=new String();
		mp.put("AC",0);
		mp.put("WA",0);
		mp.put("TLE",0);
		mp.put("RE",0);
		while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		}
		System.out.println("AC x "+mp.get("AC"));
		System.out.println("WA x "+mp.get("WA"));
		System.out.println("TLE x "+mp.get("TLE"));
		System.out.println("RE x "+mp.get("RE"));
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int te=sc.nextInt(); te sc.nextInt() sc.nextInt sc Map <String,Integer> mp=new HashMap<>(); mp new HashMap<>() String s=new String(); s new String() mp.put("AC",0) mp.put mp "AC" 0 mp.put("WA",0) mp.put mp "WA" 0 mp.put("TLE",0) mp.put mp "TLE" 0 mp.put("RE",0) mp.put mp "RE" 0 while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		} te-->0 te-- te 0 {
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		} s=sc.next() s sc.next() sc.next sc Integer val=mp.get(s); val mp.get(s) mp.get mp s mp.put(s,val+1) mp.put mp s val+1 val 1 System.out.println("AC x "+mp.get("AC")) System.out.println System.out System System.out "AC x "+mp.get("AC") "AC x " mp.get("AC") mp.get mp "AC" System.out.println("WA x "+mp.get("WA")) System.out.println System.out System System.out "WA x "+mp.get("WA") "WA x " mp.get("WA") mp.get mp "WA" System.out.println("TLE x "+mp.get("TLE")) System.out.println System.out System System.out "TLE x "+mp.get("TLE") "TLE x " mp.get("TLE") mp.get mp "TLE" System.out.println("RE x "+mp.get("RE")) System.out.println System.out System System.out "RE x "+mp.get("RE") "RE x " mp.get("RE") mp.get mp "RE" String args[] args public class Main{
	public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		int te=sc.nextInt();
		Map <String,Integer> mp=new HashMap<>();
		String s=new String();
		mp.put("AC",0);
		mp.put("WA",0);
		mp.put("TLE",0);
		mp.put("RE",0);
		while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		}
		System.out.println("AC x "+mp.get("AC"));
		System.out.println("WA x "+mp.get("WA"));
		System.out.println("TLE x "+mp.get("TLE"));
		System.out.println("RE x "+mp.get("RE"));
	}
} public class Main{
	public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		int te=sc.nextInt();
		Map <String,Integer> mp=new HashMap<>();
		String s=new String();
		mp.put("AC",0);
		mp.put("WA",0);
		mp.put("TLE",0);
		mp.put("RE",0);
		while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		}
		System.out.println("AC x "+mp.get("AC"));
		System.out.println("WA x "+mp.get("WA"));
		System.out.println("TLE x "+mp.get("TLE"));
		System.out.println("RE x "+mp.get("RE"));
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		int te=sc.nextInt();
		Map <String,Integer> mp=new HashMap<>();
		String s=new String();
		mp.put("AC",0);
		mp.put("WA",0);
		mp.put("TLE",0);
		mp.put("RE",0);
		while(te-->0){
			s=sc.next();
			Integer val=mp.get(s);
			mp.put(s,val+1);
		}
		System.out.println("AC x "+mp.get("AC"));
		System.out.println("WA x "+mp.get("WA"));
		System.out.println("TLE x "+mp.get("TLE"));
		System.out.println("RE x "+mp.get("RE"));
	}
};