
import java.util.ArrayList;
import java.util.Scanner;


public class Main {
public static void main (String[] args){


	Scanner sc =new Scanner(System.in);
	ArrayList<String> list=new ArrayList<String>();


	while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	}
	
	int AC=0;
	int WA=0;
	int TLE=0;
	int RE=0;
	
	int num= Integer.parseInt(list.get(0))+1;
	
	for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	}
	
	System.out.println("AC x "+AC);
	System.out.println("WA x "+WA);
	System.out.println("TLE x "+TLE);
	System.out.println("RE x "+RE);

}}

 import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
public static void main (String[] args){


	Scanner sc =new Scanner(System.in);
	ArrayList<String> list=new ArrayList<String>();


	while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	}
	
	int AC=0;
	int WA=0;
	int TLE=0;
	int RE=0;
	
	int num= Integer.parseInt(list.get(0))+1;
	
	for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	}
	
	System.out.println("AC x "+AC);
	System.out.println("WA x "+WA);
	System.out.println("TLE x "+TLE);
	System.out.println("RE x "+RE);

}} Main public static void main (String[] args){


	Scanner sc =new Scanner(System.in);
	ArrayList<String> list=new ArrayList<String>();


	while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	}
	
	int AC=0;
	int WA=0;
	int TLE=0;
	int RE=0;
	
	int num= Integer.parseInt(list.get(0))+1;
	
	for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	}
	
	System.out.println("AC x "+AC);
	System.out.println("WA x "+WA);
	System.out.println("TLE x "+TLE);
	System.out.println("RE x "+RE);

} main {


	Scanner sc =new Scanner(System.in);
	ArrayList<String> list=new ArrayList<String>();


	while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	}
	
	int AC=0;
	int WA=0;
	int TLE=0;
	int RE=0;
	
	int num= Integer.parseInt(list.get(0))+1;
	
	for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	}
	
	System.out.println("AC x "+AC);
	System.out.println("WA x "+WA);
	System.out.println("TLE x "+TLE);
	System.out.println("RE x "+RE);

} Scanner sc =new Scanner(System.in); sc new Scanner(System.in) ArrayList<String> list=new ArrayList<String>(); list new ArrayList<String>() while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	} sc.hasNextLine() sc.hasNextLine sc {
		list.add(sc.nextLine());
	} list.add(sc.nextLine()) list.add list sc.nextLine() sc.nextLine sc int AC=0; AC 0 int WA=0; WA 0 int TLE=0; TLE 0 int RE=0; RE 0 int num= Integer.parseInt(list.get(0))+1; num Integer.parseInt(list.get(0))+1 Integer.parseInt(list.get(0)) Integer.parseInt Integer list.get(0) list.get list 0 1 for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	} int i=1; int i=1; i 1 i<num i num i++ i++ i {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	} {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	} if(list.get(i).equals("AC")) {
			AC++;
		} list.get(i).equals("AC") list.get(i).equals list.get(i) list.get list i "AC" {
			AC++;
		} AC++ AC if(list.get(i).equals("WA")) {
			WA++;
		} list.get(i).equals("WA") list.get(i).equals list.get(i) list.get list i "WA" {
			WA++;
		} WA++ WA if(list.get(i).equals("TLE")) {
			TLE++;
		} list.get(i).equals("TLE") list.get(i).equals list.get(i) list.get list i "TLE" {
			TLE++;
		} TLE++ TLE if(list.get(i).equals("RE")) {
			RE++;
		} list.get(i).equals("RE") list.get(i).equals list.get(i) list.get list i "RE" {
			RE++;
		} RE++ RE System.out.println("AC x "+AC) System.out.println System.out System System.out "AC x "+AC "AC x " AC System.out.println("WA x "+WA) System.out.println System.out System System.out "WA x "+WA "WA x " WA System.out.println("TLE x "+TLE) System.out.println System.out System System.out "TLE x "+TLE "TLE x " TLE System.out.println("RE x "+RE) System.out.println System.out System System.out "RE x "+RE "RE x " RE String[] args args public class Main {
public static void main (String[] args){


	Scanner sc =new Scanner(System.in);
	ArrayList<String> list=new ArrayList<String>();


	while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	}
	
	int AC=0;
	int WA=0;
	int TLE=0;
	int RE=0;
	
	int num= Integer.parseInt(list.get(0))+1;
	
	for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	}
	
	System.out.println("AC x "+AC);
	System.out.println("WA x "+WA);
	System.out.println("TLE x "+TLE);
	System.out.println("RE x "+RE);

}} public class Main {
public static void main (String[] args){


	Scanner sc =new Scanner(System.in);
	ArrayList<String> list=new ArrayList<String>();


	while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	}
	
	int AC=0;
	int WA=0;
	int TLE=0;
	int RE=0;
	
	int num= Integer.parseInt(list.get(0))+1;
	
	for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	}
	
	System.out.println("AC x "+AC);
	System.out.println("WA x "+WA);
	System.out.println("TLE x "+TLE);
	System.out.println("RE x "+RE);

}} Main

import java.util.ArrayList;
import java.util.Scanner;


public class Main {
public static void main (String[] args){


	Scanner sc =new Scanner(System.in);
	ArrayList<String> list=new ArrayList<String>();


	while(sc.hasNextLine()) {
		list.add(sc.nextLine());
	}
	
	int AC=0;
	int WA=0;
	int TLE=0;
	int RE=0;
	
	int num= Integer.parseInt(list.get(0))+1;
	
	for(int i=1; i<num;i++) {
		if(list.get(i).equals("AC")) {
			AC++;
		}
		if(list.get(i).equals("WA")) {
			WA++;
		}
		if(list.get(i).equals("TLE")) {
			TLE++;
		}
		if(list.get(i).equals("RE")) {
			RE++;
		}
	}
	
	System.out.println("AC x "+AC);
	System.out.println("WA x "+WA);
	System.out.println("TLE x "+TLE);
	System.out.println("RE x "+RE);

}}


