import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int[] result = new int[4];//ac,wa,tle,re
      	for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        }
      	System.out.println("AC x " + result[0]);
      	System.out.println("WA x " + result[1]);
      	System.out.println("TLE x " + result[2]);
      	System.out.println("RE x " + result[3]);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int[] result = new int[4];//ac,wa,tle,re
      	for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        }
      	System.out.println("AC x " + result[0]);
      	System.out.println("WA x " + result[1]);
      	System.out.println("TLE x " + result[2]);
      	System.out.println("RE x " + result[3]);
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int[] result = new int[4];//ac,wa,tle,re
      	for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        }
      	System.out.println("AC x " + result[0]);
      	System.out.println("WA x " + result[1]);
      	System.out.println("TLE x " + result[2]);
      	System.out.println("RE x " + result[3]);
    } main {
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int[] result = new int[4];//ac,wa,tle,re
      	for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        }
      	System.out.println("AC x " + result[0]);
      	System.out.println("WA x " + result[1]);
      	System.out.println("TLE x " + result[2]);
      	System.out.println("RE x " + result[3]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] result = new int[4]; result new int[4] 4 for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        } {
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        } String s = sc.next(); s sc.next() sc.next sc switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            } s case "AC": "AC" case "AC": result[0]++ result[0] result 0 break; case "WA": "WA" case "WA": result[1]++ result[1] result 1 break; case "TLE": "TLE" case "TLE": result[2]++ result[2] result 2 break; case "RE": "RE" case "RE": result[3]++ result[3] result 3 break; System.out.println("AC x " + result[0]) System.out.println System.out System System.out "AC x " + result[0] "AC x " result[0] result 0 System.out.println("WA x " + result[1]) System.out.println System.out System System.out "WA x " + result[1] "WA x " result[1] result 1 System.out.println("TLE x " + result[2]) System.out.println System.out System System.out "TLE x " + result[2] "TLE x " result[2] result 2 System.out.println("RE x " + result[3]) System.out.println System.out System System.out "RE x " + result[3] "RE x " result[3] result 3 String[] args args public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int[] result = new int[4];//ac,wa,tle,re
      	for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        }
      	System.out.println("AC x " + result[0]);
      	System.out.println("WA x " + result[1]);
      	System.out.println("TLE x " + result[2]);
      	System.out.println("RE x " + result[3]);
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int[] result = new int[4];//ac,wa,tle,re
      	for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        }
      	System.out.println("AC x " + result[0]);
      	System.out.println("WA x " + result[1]);
      	System.out.println("TLE x " + result[2]);
      	System.out.println("RE x " + result[3]);
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int[] result = new int[4];//ac,wa,tle,re
      	for(int i = 0; i < n; i++){
        	String s = sc.next();
          	switch(s){
              case "AC":
                result[0]++;
				break;
              case "WA":
                result[1]++;
                break;
              case "TLE":
                result[2]++;
				break;
              case "RE":
                result[3]++;
                break;              
            }
        }
      	System.out.println("AC x " + result[0]);
      	System.out.println("WA x " + result[1]);
      	System.out.println("TLE x " + result[2]);
      	System.out.println("RE x " + result[3]);
    }
}