import java.io.*;
import java.util.Scanner;
public class Main {
    private enum hoge{
        AC,
        WA,
        TLE,
        RE;
    }
    public static void main(String[] args) {
        InputStream in = System.in;
        Scanner scanner = new Scanner(in);

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        int next = scanner.nextInt();
        for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        }
        scanner.close();
        System.out.println( String.format("AC x %s", ac) );
        System.out.println( String.format("WA x %s", wa) );
        System.out.println( String.format("TLE x %s", tle) );
        System.out.println( String.format("RE x %s", re) );
    }

} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main {
    private enum hoge{
        AC,
        WA,
        TLE,
        RE;
    }
    public static void main(String[] args) {
        InputStream in = System.in;
        Scanner scanner = new Scanner(in);

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        int next = scanner.nextInt();
        for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        }
        scanner.close();
        System.out.println( String.format("AC x %s", ac) );
        System.out.println( String.format("WA x %s", wa) );
        System.out.println( String.format("TLE x %s", tle) );
        System.out.println( String.format("RE x %s", re) );
    }

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

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        int next = scanner.nextInt();
        for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        }
        scanner.close();
        System.out.println( String.format("AC x %s", ac) );
        System.out.println( String.format("WA x %s", wa) );
        System.out.println( String.format("TLE x %s", tle) );
        System.out.println( String.format("RE x %s", re) );
    } main {
        InputStream in = System.in;
        Scanner scanner = new Scanner(in);

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        int next = scanner.nextInt();
        for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        }
        scanner.close();
        System.out.println( String.format("AC x %s", ac) );
        System.out.println( String.format("WA x %s", wa) );
        System.out.println( String.format("TLE x %s", tle) );
        System.out.println( String.format("RE x %s", re) );
    } InputStream in = System.in; in System.in System System.in Scanner scanner = new Scanner(in); scanner new Scanner(in) int ac = 0; ac 0 int wa = 0; wa 0 int tle = 0; tle 0 int re = 0; re 0 int next = scanner.nextInt(); next scanner.nextInt() scanner.nextInt scanner for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        } int i = 0; int i = 0; i 0 i <= next i next i++ i++ i {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        } {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        } String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            } s.equals(hoge.AC.toString()) s.equals s hoge.AC.toString() hoge.AC.toString hoge.AC hoge hoge.AC {
                ac++;
            } ac++ ac if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            } s.equals(hoge.WA.toString()) s.equals s hoge.WA.toString() hoge.WA.toString hoge.WA hoge hoge.WA {
                wa++;
            } wa++ wa if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            } s.equals(hoge.TLE.toString()) s.equals s hoge.TLE.toString() hoge.TLE.toString hoge.TLE hoge hoge.TLE {
                tle++;
            } tle++ tle if(s.equals(hoge.RE.toString())){
                re++;
            } s.equals(hoge.RE.toString()) s.equals s hoge.RE.toString() hoge.RE.toString hoge.RE hoge hoge.RE {
                re++;
            } re++ re scanner.close() scanner.close scanner System.out.println( String.format("AC x %s", ac) ) System.out.println System.out System System.out String.format("AC x %s", ac) String.format String "AC x %s" ac System.out.println( String.format("WA x %s", wa) ) System.out.println System.out System System.out String.format("WA x %s", wa) String.format String "WA x %s" wa System.out.println( String.format("TLE x %s", tle) ) System.out.println System.out System System.out String.format("TLE x %s", tle) String.format String "TLE x %s" tle System.out.println( String.format("RE x %s", re) ) System.out.println System.out System System.out String.format("RE x %s", re) String.format String "RE x %s" re String[] args args private enum hoge{
        AC,
        WA,
        TLE,
        RE;
    } hoge AC AC WA WA TLE TLE RE RE import java.io.*;
import java.uti import java.io.*;
import java.util.Scanner;
public class Main {
    private enum hoge{
         public class Main {
    private enum hoge{
        AC,
        WA,
        TLE,
        RE;
    }
    public static void main(String[] args) {
        InputStream in = System.in;
        Scanner scanner = new Scanner(in);

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        int next = scanner.nextInt();
        for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        }
        scanner.close();
        System.out.println( String.format("AC x %s", ac) );
        System.out.println( String.format("WA x %s", wa) );
        System.out.println( String.format("TLE x %s", tle) );
        System.out.println( String.format("RE x %s", re) );
    }

} public class Main {
    private enum hoge{
        AC,
        WA,
        TLE,
        RE;
    }
    public static void main(String[] args) {
        InputStream in = System.in;
        Scanner scanner = new Scanner(in);

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        int next = scanner.nextInt();
        for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        }
        scanner.close();
        System.out.println( String.format("AC x %s", ac) );
        System.out.println( String.format("WA x %s", wa) );
        System.out.println( String.format("TLE x %s", tle) );
        System.out.println( String.format("RE x %s", re) );
    }

} Main
import java.io.*;
import java.util.Scanner;
public class Main {
    private enum hoge{
        AC,
        WA,
        TLE,
        RE;
    }
    public static void main(String[] args) {
        InputStream in = System.in;
        Scanner scanner = new Scanner(in);

        int ac = 0;
        int wa = 0;
        int tle = 0;
        int re = 0;

        int next = scanner.nextInt();
        for (int i = 0; i <= next; i++) {
            String s = scanner.nextLine();
            if (s.equals(hoge.AC.toString())) {
                ac++;
            }else if(s.equals(hoge.WA.toString())){
                wa++;
            }else if(s.equals(hoge.TLE.toString())){
                tle++;
            }else if(s.equals(hoge.RE.toString())){
                re++;
            }
        }
        scanner.close();
        System.out.println( String.format("AC x %s", ac) );
        System.out.println( String.format("WA x %s", wa) );
        System.out.println( String.format("TLE x %s", tle) );
        System.out.println( String.format("RE x %s", re) );
    }

}