
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    } main {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    } BufferedReader br  = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Map<String,Integer> frequencies = new HashMap<>(); frequencies new HashMap<>() String[] verdicts = {"WA","AC","TLE","RE"}; verdicts {"WA","AC","TLE","RE"} "WA" "AC" "TLE" "RE" for(String verdict:verdicts)frequencies.put(verdict,0); String verdict verdicts frequencies.put(verdict,0); frequencies.put(verdict,0) frequencies.put frequencies verdict 0 int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        } {
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        } String verdict  = br.readLine(); verdict br.readLine() br.readLine br frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1) frequencies.put frequencies verdict frequencies.getOrDefault(verdict,0)+1 frequencies.getOrDefault(verdict,0) frequencies.getOrDefault frequencies verdict 0 1 System.out.println("AC" + " x " +frequencies.get("AC")) System.out.println System.out System System.out "AC" + " x " +frequencies.get("AC") "AC" + " x " +frequencies.get("AC") "AC" " x " frequencies.get("AC") frequencies.get frequencies "AC" System.out.println("WA" + " x " +frequencies.get("WA")) System.out.println System.out System System.out "WA" + " x " +frequencies.get("WA") "WA" + " x " +frequencies.get("WA") "WA" " x " frequencies.get("WA") frequencies.get frequencies "WA" System.out.println("TLE" + " x " +frequencies.get("TLE")) System.out.println System.out System System.out "TLE" + " x " +frequencies.get("TLE") "TLE" + " x " +frequencies.get("TLE") "TLE" " x " frequencies.get("TLE") frequencies.get frequencies "TLE" System.out.println("RE" + " x " +frequencies.get("RE")) System.out.println System.out System System.out "RE" + " x " +frequencies.get("RE") "RE" + " x " +frequencies.get("RE") "RE" " x " frequencies.get("RE") frequencies.get frequencies "RE" String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    }
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    }
}
