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

/**
 * @author mihira
 *
 */
public class Main {
    
    static final String keyAc = "AC";
    
    static final String keyWa = "WA";
    
    static final String keyTle = "TLE";

    static final String keyRe = "RE";
    
    static final String cntLiteral = " x ";
    
    
    public static void main(String[] args) {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    }

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    
    static final String keyAc = "AC";
    
    static final String keyWa = "WA";
    
    static final String keyTle = "TLE";

    static final String keyRe = "RE";
    
    static final String cntLiteral = " x ";
    
    
    public static void main(String[] args) {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    }

} Main static final String keyAc = "AC"; keyAc "AC" static final String keyWa = "WA"; keyWa "WA" static final String keyTle = "TLE"; keyTle "TLE" static final String keyRe = "RE"; keyRe "RE" static final String cntLiteral = " x "; cntLiteral " x " public static void main(String[] args) {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    } main {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) List<String> list = new ArrayList<>(); list new ArrayList<>() int cntNum = Integer.parseInt(scanner.nextLine()); cntNum Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        } int i = 0; int i = 0; i 0 i < cntNum i cntNum i++ i++ i {
            String getData = scanner.nextLine();
            list.add(getData);
        } {
            String getData = scanner.nextLine();
            list.add(getData);
        } String getData = scanner.nextLine(); getData scanner.nextLine() scanner.nextLine scanner list.add(getData) list.add list getData int cntAc = 0; cntAc 0 int cntWa = 0; cntWa 0 int cntTle = 0; cntTle 0 int cntRe = 0; cntRe 0 for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        } int cntupNum = 0; int cntupNum = 0; cntupNum 0 cntupNum< cntNum cntupNum cntNum cntupNum++ cntupNum++ cntupNum {  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        } {  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        } switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            } list.get(cntupNum) list.get list cntupNum case keyAc: keyAc case keyAc: cntAc++ cntAc break; case keyWa: keyWa case keyWa: cntWa++ cntWa break; case keyTle: keyTle case keyTle: cntTle++ cntTle break; case keyRe: keyRe case keyRe: cntRe++ cntRe break; System.out.println(keyAc+cntLiteral+cntAc) System.out.println System.out System System.out keyAc+cntLiteral+cntAc keyAc+cntLiteral+cntAc keyAc cntLiteral cntAc System.out.println(keyWa+cntLiteral+cntWa) System.out.println System.out System System.out keyWa+cntLiteral+cntWa keyWa+cntLiteral+cntWa keyWa cntLiteral cntWa System.out.println(keyTle+cntLiteral+cntTle) System.out.println System.out System System.out keyTle+cntLiteral+cntTle keyTle+cntLiteral+cntTle keyTle cntLiteral cntTle System.out.println(keyRe+cntLiteral+cntRe) System.out.println System.out System System.out keyRe+cntLiteral+cntRe keyRe+cntLiteral+cntRe keyRe cntLiteral cntRe String[] args args public class Main {
    
    static final String keyAc = "AC";
    
    static final String keyWa = "WA";
    
    static final String keyTle = "TLE";

    static final String keyRe = "RE";
    
    static final String cntLiteral = " x ";
    
    
    public static void main(String[] args) {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    }

} public class Main {
    
    static final String keyAc = "AC";
    
    static final String keyWa = "WA";
    
    static final String keyTle = "TLE";

    static final String keyRe = "RE";
    
    static final String cntLiteral = " x ";
    
    
    public static void main(String[] args) {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    }

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

/**
 * @author mihira
 *
 */
public class Main {
    
    static final String keyAc = "AC";
    
    static final String keyWa = "WA";
    
    static final String keyTle = "TLE";

    static final String keyRe = "RE";
    
    static final String cntLiteral = " x ";
    
    
    public static void main(String[] args) {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    }

}
