import java.util.*;

public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        String judge[] = {"AC","WA","TLE","RE"};
        int count[] = {0,0,0,0};

        for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        }

        for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        String judge[] = {"AC","WA","TLE","RE"};
        int count[] = {0,0,0,0};

        for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        }

        for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        }
    }
} Main public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        String judge[] = {"AC","WA","TLE","RE"};
        int count[] = {0,0,0,0};

        for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        }

        for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        }
    } main {

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        String judge[] = {"AC","WA","TLE","RE"};
        int count[] = {0,0,0,0};

        for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        }

        for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner String judge[] = {"AC","WA","TLE","RE"}; judge {"AC","WA","TLE","RE"} "AC" "WA" "TLE" "RE" int count[] = {0,0,0,0}; count {0,0,0,0} 0 0 0 0 for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        } int loop = 0; int loop = 0; loop 0 loop<N loop N loop++ loop++ loop {
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        } {
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        } String result = scanner.next(); result scanner.next() scanner.next scanner switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            } result case "AC": "AC" case "AC": count[0]++ count[0] count 0 break; case "WA": "WA" case "WA": count[1]++ count[1] count 1 break; case "TLE": "TLE" case "TLE": count[2]++ count[2] count 2 break; case "RE": "RE" case "RE": count[3]++ count[3] count 3 break; default: default: break; for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        } int loop = 0; int loop = 0; loop 0 loop < 4 loop 4 loop++ loop++ loop {
            System.out.println( judge[loop] + " x " + count[loop] );
        } {
            System.out.println( judge[loop] + " x " + count[loop] );
        } System.out.println( judge[loop] + " x " + count[loop] ) System.out.println System.out System System.out judge[loop] + " x " + count[loop] judge[loop] + " x " + count[loop] judge[loop] judge loop " x " count[loop] count loop String[] args args public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        String judge[] = {"AC","WA","TLE","RE"};
        int count[] = {0,0,0,0};

        for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        }

        for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        }
    }
} public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        String judge[] = {"AC","WA","TLE","RE"};
        int count[] = {0,0,0,0};

        for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        }

        for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        String judge[] = {"AC","WA","TLE","RE"};
        int count[] = {0,0,0,0};

        for(int loop = 0; loop<N; loop++){
            String result = scanner.next();
            switch(result){
                case "AC":
                    count[0]++;
                    break;
                case "WA":
                    count[1]++;
                    break;
                case "TLE":
                    count[2]++;
                    break;
                case "RE":
                    count[3]++;
                    break;
                default:
                    break;
            }
        }

        for(int loop = 0; loop < 4; loop++){
            System.out.println( judge[loop] + " x " + count[loop] );
        }
    }
}