import java.util.Scanner;
public class Main
{
 	public static void main(String[] args)
    {
     	 Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.nextLine());
      	int b[] = new int[4]; 
      	for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        }
      	System.out.println("AC x " + b[0]);
      	System.out.println("WA x " + b[1]);
      	System.out.println("TLE x " + b[2]);
      	System.out.println("RE x " + b[3]);
    }
} import java.util.Scanner; Scanner java.util public class Main
{
 	public static void main(String[] args)
    {
     	 Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.nextLine());
      	int b[] = new int[4]; 
      	for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        }
      	System.out.println("AC x " + b[0]);
      	System.out.println("WA x " + b[1]);
      	System.out.println("TLE x " + b[2]);
      	System.out.println("RE x " + b[3]);
    }
} Main public static void main(String[] args)
    {
     	 Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.nextLine());
      	int b[] = new int[4]; 
      	for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        }
      	System.out.println("AC x " + b[0]);
      	System.out.println("WA x " + b[1]);
      	System.out.println("TLE x " + b[2]);
      	System.out.println("RE x " + b[3]);
    } main {
     	 Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.nextLine());
      	int b[] = new int[4]; 
      	for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        }
      	System.out.println("AC x " + b[0]);
      	System.out.println("WA x " + b[1]);
      	System.out.println("TLE x " + b[2]);
      	System.out.println("RE x " + b[3]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.nextLine()); a Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int b[] = new int[4]; b new int[4] 4 for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        } {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        } String word = sc.nextLine(); word sc.nextLine() sc.nextLine sc if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            } word.equals("AC") word.equals word "AC" {
              b[0]++;
            } b[0]++ b[0] b 0 if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            } word.equals("TLE") word.equals word "TLE" {
              b[2]++;
            } b[2]++ b[2] b 2 if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            } word.equals("WA") word.equals word "WA" {
              b[1]++;
            } b[1]++ b[1] b 1 {
              b[3]++;
            } b[3]++ b[3] b 3 System.out.println("AC x " + b[0]) System.out.println System.out System System.out "AC x " + b[0] "AC x " b[0] b 0 System.out.println("WA x " + b[1]) System.out.println System.out System System.out "WA x " + b[1] "WA x " b[1] b 1 System.out.println("TLE x " + b[2]) System.out.println System.out System System.out "TLE x " + b[2] "TLE x " b[2] b 2 System.out.println("RE x " + b[3]) System.out.println System.out System System.out "RE x " + b[3] "RE x " b[3] b 3 String[] args args public class Main
{
 	public static void main(String[] args)
    {
     	 Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.nextLine());
      	int b[] = new int[4]; 
      	for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        }
      	System.out.println("AC x " + b[0]);
      	System.out.println("WA x " + b[1]);
      	System.out.println("TLE x " + b[2]);
      	System.out.println("RE x " + b[3]);
    }
} public class Main
{
 	public static void main(String[] args)
    {
     	 Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.nextLine());
      	int b[] = new int[4]; 
      	for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        }
      	System.out.println("AC x " + b[0]);
      	System.out.println("WA x " + b[1]);
      	System.out.println("TLE x " + b[2]);
      	System.out.println("RE x " + b[3]);
    }
} Main
import java.util.Scanner;
public class Main
{
 	public static void main(String[] args)
    {
     	 Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.nextLine());
      	int b[] = new int[4]; 
      	for(int i = 0; i < a; i++)
        {	
          	String word = sc.nextLine();
         	if(word.equals("AC")) 
            {
              b[0]++;
            }else if(word.equals("TLE")){
              b[2]++;
            }else if(word.equals("WA")){
              b[1]++;
            }else{
              b[3]++;
            }
              
        }
      	System.out.println("AC x " + b[0]);
      	System.out.println("WA x " + b[1]);
      	System.out.println("TLE x " + b[2]);
      	System.out.println("RE x " + b[3]);
    }
}