import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);

    int N = in.nextInt();		// テストケースの個数
    String S[] = new String[N];	// ジャッジ結果を表す文字列	( AC, WA, TLE, RE )
    for(int i=0; i<N; i++)
		S[i] = in.next();
    int C[] = new int[4];			// それぞれのテストケースの個数
    for(int i=0; i<4; i++)
    	C[i] = 0;
    
    for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    }
    
    System.out.println("AC x " + C[0]);
    System.out.println("WA x " + C[1]);
    System.out.println("TLE x " + C[2]);
    System.out.println("RE x " + C[3]);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);

    int N = in.nextInt();		// テストケースの個数
    String S[] = new String[N];	// ジャッジ結果を表す文字列	( AC, WA, TLE, RE )
    for(int i=0; i<N; i++)
		S[i] = in.next();
    int C[] = new int[4];			// それぞれのテストケースの個数
    for(int i=0; i<4; i++)
    	C[i] = 0;
    
    for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    }
    
    System.out.println("AC x " + C[0]);
    System.out.println("WA x " + C[1]);
    System.out.println("TLE x " + C[2]);
    System.out.println("RE x " + C[3]);
  }
} Main public static void main(String[] args){
    Scanner in = new Scanner(System.in);

    int N = in.nextInt();		// テストケースの個数
    String S[] = new String[N];	// ジャッジ結果を表す文字列	( AC, WA, TLE, RE )
    for(int i=0; i<N; i++)
		S[i] = in.next();
    int C[] = new int[4];			// それぞれのテストケースの個数
    for(int i=0; i<4; i++)
    	C[i] = 0;
    
    for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    }
    
    System.out.println("AC x " + C[0]);
    System.out.println("WA x " + C[1]);
    System.out.println("TLE x " + C[2]);
    System.out.println("RE x " + C[3]);
  } main {
    Scanner in = new Scanner(System.in);

    int N = in.nextInt();		// テストケースの個数
    String S[] = new String[N];	// ジャッジ結果を表す文字列	( AC, WA, TLE, RE )
    for(int i=0; i<N; i++)
		S[i] = in.next();
    int C[] = new int[4];			// それぞれのテストケースの個数
    for(int i=0; i<4; i++)
    	C[i] = 0;
    
    for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    }
    
    System.out.println("AC x " + C[0]);
    System.out.println("WA x " + C[1]);
    System.out.println("TLE x " + C[2]);
    System.out.println("RE x " + C[3]);
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in String S[] = new String[N]; S new String[N] N for(int i=0; i<N; i++)
		S[i] = in.next(); int i=0; int i=0; i 0 i<N i N i++ i++ i S[i] = in.next(); S[i] = in.next() S[i] S i in.next() in.next in int C[] = new int[4]; C new int[4] 4 for(int i=0; i<4; i++)
    	C[i] = 0; int i=0; int i=0; i 0 i<4 i 4 i++ i++ i C[i] = 0; C[i] = 0 C[i] C i 0 for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    } {
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    } switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		} S[i] S i case "AC": "AC" case "AC": C[0]++ C[0] C 0 break; case "WA": "WA" case "WA": C[1]++ C[1] C 1 break; case "TLE": "TLE" case "TLE": C[2]++ C[2] C 2 break; case "RE": "RE" case "RE": C[3]++ C[3] C 3 break; System.out.println("AC x " + C[0]) System.out.println System.out System System.out "AC x " + C[0] "AC x " C[0] C 0 System.out.println("WA x " + C[1]) System.out.println System.out System System.out "WA x " + C[1] "WA x " C[1] C 1 System.out.println("TLE x " + C[2]) System.out.println System.out System System.out "TLE x " + C[2] "TLE x " C[2] C 2 System.out.println("RE x " + C[3]) System.out.println System.out System System.out "RE x " + C[3] "RE x " C[3] C 3 String[] args args public class Main {
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);

    int N = in.nextInt();		// テストケースの個数
    String S[] = new String[N];	// ジャッジ結果を表す文字列	( AC, WA, TLE, RE )
    for(int i=0; i<N; i++)
		S[i] = in.next();
    int C[] = new int[4];			// それぞれのテストケースの個数
    for(int i=0; i<4; i++)
    	C[i] = 0;
    
    for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    }
    
    System.out.println("AC x " + C[0]);
    System.out.println("WA x " + C[1]);
    System.out.println("TLE x " + C[2]);
    System.out.println("RE x " + C[3]);
  }
} public class Main {
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);

    int N = in.nextInt();		// テストケースの個数
    String S[] = new String[N];	// ジャッジ結果を表す文字列	( AC, WA, TLE, RE )
    for(int i=0; i<N; i++)
		S[i] = in.next();
    int C[] = new int[4];			// それぞれのテストケースの個数
    for(int i=0; i<4; i++)
    	C[i] = 0;
    
    for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    }
    
    System.out.println("AC x " + C[0]);
    System.out.println("WA x " + C[1]);
    System.out.println("TLE x " + C[2]);
    System.out.println("RE x " + C[3]);
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);

    int N = in.nextInt();		// テストケースの個数
    String S[] = new String[N];	// ジャッジ結果を表す文字列	( AC, WA, TLE, RE )
    for(int i=0; i<N; i++)
		S[i] = in.next();
    int C[] = new int[4];			// それぞれのテストケースの個数
    for(int i=0; i<4; i++)
    	C[i] = 0;
    
    for(int i=0; i<N; i++){
		switch (S[i]){
			case "AC":
				C[0]++;
				break;
			case "WA":
				C[1]++;
				break;
			case "TLE":
				C[2]++;
				break;
			case "RE":
				C[3]++;
				break;
		}
    }
    
    System.out.println("AC x " + C[0]);
    System.out.println("WA x " + C[1]);
    System.out.println("TLE x " + C[2]);
    System.out.println("RE x " + C[3]);
  }
}