
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		}	
	}
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		}	
	}
} Main public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		}	
	} main {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		}	
	} try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		} {
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		} Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan String[] S = new String[N]; S new String[N] N Map<String, Integer> map = new HashMap<String,Integer>(); map new HashMap<String,Integer>() map.put("AC", 0) map.put map "AC" 0 map.put("WA", 0) map.put map "WA" 0 map.put("TLE", 0) map.put map "TLE" 0 map.put("RE", 0) map.put map "RE" 0 for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			} int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			} {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			} S[i]= scan.next() S[i] S i scan.next() scan.next scan map.put(S[i], map.get(S[i])+1) map.put map S[i] S i map.get(S[i])+1 map.get(S[i]) map.get map S[i] S i 1 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("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("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("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" String[]args args public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		}	
	}
} public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		}	
	}
} Main

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			String[] S = new String[N];
			Map<String, Integer> map = new HashMap<String,Integer>();
			map.put("AC", 0);
			map.put("WA", 0);
			map.put("TLE", 0);
			map.put("RE", 0);
			for(int i = 0;i<N;i++) {
				S[i]= scan.next();
				map.put(S[i], map.get(S[i])+1);
			}
			
			
			System.out.println("AC x "+map.get("AC"));
			System.out.println("WA x "+map.get("WA"));
			System.out.println("TLE x "+map.get("TLE"));
			System.out.println("RE x "+map.get("RE"));

		}	
	}
}
