
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}

} Main public static void main(String[] args) {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	} main {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	} int testNum; testNum int judgeAC = 0; judgeAC 0 int judgeWA = 0; judgeWA 0 int judgeTLE = 0; judgeTLE 0 int judgeRE = 0; judgeRE 0 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} IOException e {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} testNum =Integer.parseInt(reader.readLine()) testNum Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			} int i = 0; int i = 0; i 0 i < testNum i testNum i++ i++ i {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			} {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			} String judge = reader.readLine(); judge reader.readLine() reader.readLine reader if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				} judge.equals("AC") judge.equals judge "AC" {
					judgeAC++;
				} judgeAC++ judgeAC if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				} judge.equals("WA") judge.equals judge "WA" {
					judgeWA++;
				} judgeWA++ judgeWA if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				} judge.equals("TLE") judge.equals judge "TLE" {
					judgeTLE++;
				} judgeTLE++ judgeTLE if(judge.equals("RE")) {
					judgeRE++;
				} judge.equals("RE") judge.equals judge "RE" {
					judgeRE++;
				} judgeRE++ judgeRE System.out.println("AC x "+judgeAC) System.out.println System.out System System.out "AC x "+judgeAC "AC x " judgeAC System.out.println("WA x "+judgeWA) System.out.println System.out System System.out "WA x "+judgeWA "WA x " judgeWA System.out.println("TLE x "+judgeTLE) System.out.println System.out System System.out "TLE x "+judgeTLE "TLE x " judgeTLE System.out.println("RE x "+judgeRE) System.out.println System.out System System.out "RE x "+judgeRE "RE x " judgeRE String[] args args public class Main {

	public static void main(String[] args) {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}

} public class Main {

	public static void main(String[] args) {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}

} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}

}
