import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 入力情報（個数）
        int N = scan.nextInt();

        int ansAC = 0;
        int ansWA = 0;
        int ansTLE = 0;
        int ansRE = 0;

        List<String> results = new ArrayList<String>();

        // 入力情報（内容）
        for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        }

        // カウント
        ansAC = Collections.frequency(results, "AC");
        ansWA = Collections.frequency(results, "WA");
        ansTLE = Collections.frequency(results, "TLE");
        ansRE = Collections.frequency(results, "RE");

        // 結果出力
        System.out.println("AC x "+ ansAC);
        System.out.println("WA x "+ ansWA);
        System.out.println("TLE x "+ ansTLE);
        System.out.println("RE x "+ ansRE);
        scan.close();

    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 入力情報（個数）
        int N = scan.nextInt();

        int ansAC = 0;
        int ansWA = 0;
        int ansTLE = 0;
        int ansRE = 0;

        List<String> results = new ArrayList<String>();

        // 入力情報（内容）
        for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        }

        // カウント
        ansAC = Collections.frequency(results, "AC");
        ansWA = Collections.frequency(results, "WA");
        ansTLE = Collections.frequency(results, "TLE");
        ansRE = Collections.frequency(results, "RE");

        // 結果出力
        System.out.println("AC x "+ ansAC);
        System.out.println("WA x "+ ansWA);
        System.out.println("TLE x "+ ansTLE);
        System.out.println("RE x "+ ansRE);
        scan.close();

    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 入力情報（個数）
        int N = scan.nextInt();

        int ansAC = 0;
        int ansWA = 0;
        int ansTLE = 0;
        int ansRE = 0;

        List<String> results = new ArrayList<String>();

        // 入力情報（内容）
        for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        }

        // カウント
        ansAC = Collections.frequency(results, "AC");
        ansWA = Collections.frequency(results, "WA");
        ansTLE = Collections.frequency(results, "TLE");
        ansRE = Collections.frequency(results, "RE");

        // 結果出力
        System.out.println("AC x "+ ansAC);
        System.out.println("WA x "+ ansWA);
        System.out.println("TLE x "+ ansTLE);
        System.out.println("RE x "+ ansRE);
        scan.close();

    } main {
        Scanner scan = new Scanner(System.in);
        // 入力情報（個数）
        int N = scan.nextInt();

        int ansAC = 0;
        int ansWA = 0;
        int ansTLE = 0;
        int ansRE = 0;

        List<String> results = new ArrayList<String>();

        // 入力情報（内容）
        for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        }

        // カウント
        ansAC = Collections.frequency(results, "AC");
        ansWA = Collections.frequency(results, "WA");
        ansTLE = Collections.frequency(results, "TLE");
        ansRE = Collections.frequency(results, "RE");

        // 結果出力
        System.out.println("AC x "+ ansAC);
        System.out.println("WA x "+ ansWA);
        System.out.println("TLE x "+ ansTLE);
        System.out.println("RE x "+ ansRE);
        scan.close();

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int ansAC = 0; ansAC 0 int ansWA = 0; ansWA 0 int ansTLE = 0; ansTLE 0 int ansRE = 0; ansRE 0 List<String> results = new ArrayList<String>(); results new ArrayList<String>() for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String input = scan.next();
            results.add(input);
        } {
            String input = scan.next();
            results.add(input);
        } String input = scan.next(); input scan.next() scan.next scan results.add(input) results.add results input ansAC = Collections.frequency(results, "AC") ansAC Collections.frequency(results, "AC") Collections.frequency Collections results "AC" ansWA = Collections.frequency(results, "WA") ansWA Collections.frequency(results, "WA") Collections.frequency Collections results "WA" ansTLE = Collections.frequency(results, "TLE") ansTLE Collections.frequency(results, "TLE") Collections.frequency Collections results "TLE" ansRE = Collections.frequency(results, "RE") ansRE Collections.frequency(results, "RE") Collections.frequency Collections results "RE" System.out.println("AC x "+ ansAC) System.out.println System.out System System.out "AC x "+ ansAC "AC x " ansAC System.out.println("WA x "+ ansWA) System.out.println System.out System System.out "WA x "+ ansWA "WA x " ansWA System.out.println("TLE x "+ ansTLE) System.out.println System.out System System.out "TLE x "+ ansTLE "TLE x " ansTLE System.out.println("RE x "+ ansRE) System.out.println System.out System System.out "RE x "+ ansRE "RE x " ansRE scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 入力情報（個数）
        int N = scan.nextInt();

        int ansAC = 0;
        int ansWA = 0;
        int ansTLE = 0;
        int ansRE = 0;

        List<String> results = new ArrayList<String>();

        // 入力情報（内容）
        for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        }

        // カウント
        ansAC = Collections.frequency(results, "AC");
        ansWA = Collections.frequency(results, "WA");
        ansTLE = Collections.frequency(results, "TLE");
        ansRE = Collections.frequency(results, "RE");

        // 結果出力
        System.out.println("AC x "+ ansAC);
        System.out.println("WA x "+ ansWA);
        System.out.println("TLE x "+ ansTLE);
        System.out.println("RE x "+ ansRE);
        scan.close();

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 入力情報（個数）
        int N = scan.nextInt();

        int ansAC = 0;
        int ansWA = 0;
        int ansTLE = 0;
        int ansRE = 0;

        List<String> results = new ArrayList<String>();

        // 入力情報（内容）
        for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        }

        // カウント
        ansAC = Collections.frequency(results, "AC");
        ansWA = Collections.frequency(results, "WA");
        ansTLE = Collections.frequency(results, "TLE");
        ansRE = Collections.frequency(results, "RE");

        // 結果出力
        System.out.println("AC x "+ ansAC);
        System.out.println("WA x "+ ansWA);
        System.out.println("TLE x "+ ansTLE);
        System.out.println("RE x "+ ansRE);
        scan.close();

    }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 入力情報（個数）
        int N = scan.nextInt();

        int ansAC = 0;
        int ansWA = 0;
        int ansTLE = 0;
        int ansRE = 0;

        List<String> results = new ArrayList<String>();

        // 入力情報（内容）
        for(int i = 0; i < N; i++){
            String input = scan.next();
            results.add(input);
        }

        // カウント
        ansAC = Collections.frequency(results, "AC");
        ansWA = Collections.frequency(results, "WA");
        ansTLE = Collections.frequency(results, "TLE");
        ansRE = Collections.frequency(results, "RE");

        // 結果出力
        System.out.println("AC x "+ ansAC);
        System.out.println("WA x "+ ansWA);
        System.out.println("TLE x "+ ansTLE);
        System.out.println("RE x "+ ansRE);
        scan.close();

    }
}