

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sumAC =0;
			int sumWA =0;
			int sumTLE =0;
			int sumRE =0;

			for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			}
			
			System.out.println("AC x "+sumAC);
			System.out.println("WA x "+sumWA);
			System.out.println("TLE x "+sumTLE);
			System.out.println("RE x "+sumRE);		
	}	
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sumAC =0;
			int sumWA =0;
			int sumTLE =0;
			int sumRE =0;

			for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			}
			
			System.out.println("AC x "+sumAC);
			System.out.println("WA x "+sumWA);
			System.out.println("TLE x "+sumTLE);
			System.out.println("RE x "+sumRE);		
	}	
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sumAC =0;
			int sumWA =0;
			int sumTLE =0;
			int sumRE =0;

			for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			}
			
			System.out.println("AC x "+sumAC);
			System.out.println("WA x "+sumWA);
			System.out.println("TLE x "+sumTLE);
			System.out.println("RE x "+sumRE);		
	} main {
		Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sumAC =0;
			int sumWA =0;
			int sumTLE =0;
			int sumRE =0;

			for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			}
			
			System.out.println("AC x "+sumAC);
			System.out.println("WA x "+sumWA);
			System.out.println("TLE x "+sumTLE);
			System.out.println("RE x "+sumRE);		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int sumAC =0; sumAC 0 int sumWA =0; sumWA 0 int sumTLE =0; sumTLE 0 int sumRE =0; sumRE 0 for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			} {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			} String judge = sc.next(); judge sc.next() sc.next sc switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				} judge case "AC": "AC" case "AC": sumAC++ sumAC break; case "WA": "WA" case "WA": sumWA++ sumWA break; case "TLE": "TLE" case "TLE": sumTLE++ sumTLE break; case "RE": "RE" case "RE": sumRE++ sumRE break; System.out.println("AC x "+sumAC) System.out.println System.out System System.out "AC x "+sumAC "AC x " sumAC System.out.println("WA x "+sumWA) System.out.println System.out System System.out "WA x "+sumWA "WA x " sumWA System.out.println("TLE x "+sumTLE) System.out.println System.out System System.out "TLE x "+sumTLE "TLE x " sumTLE System.out.println("RE x "+sumRE) System.out.println System.out System System.out "RE x "+sumRE "RE x " sumRE String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sumAC =0;
			int sumWA =0;
			int sumTLE =0;
			int sumRE =0;

			for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			}
			
			System.out.println("AC x "+sumAC);
			System.out.println("WA x "+sumWA);
			System.out.println("TLE x "+sumTLE);
			System.out.println("RE x "+sumRE);		
	}	
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sumAC =0;
			int sumWA =0;
			int sumTLE =0;
			int sumRE =0;

			for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			}
			
			System.out.println("AC x "+sumAC);
			System.out.println("WA x "+sumWA);
			System.out.println("TLE x "+sumTLE);
			System.out.println("RE x "+sumRE);		
	}	
} Main


import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sumAC =0;
			int sumWA =0;
			int sumTLE =0;
			int sumRE =0;

			for(int i=0;i<N;i++) {
				String judge = sc.next();
				switch(judge) {
				case "AC":
					sumAC++;
					break;
				case "WA":
					sumWA++;
					break;
				case "TLE":
					sumTLE++;
					break;
				case "RE":
					sumRE++;
					break;
				}
			}
			
			System.out.println("AC x "+sumAC);
			System.out.println("WA x "+sumWA);
			System.out.println("TLE x "+sumTLE);
			System.out.println("RE x "+sumRE);		
	}	
}