import java.util.Scanner;
public class Main {

  public static void main(String[] args) {
    // System.out.println("Hello World!");
    Scanner scan = new Scanner(System.in);
    int num = scan.nextInt();//ここでコンソールに入力したものを取得
    
    int resultAC = 0;
    int resultWA = 0;
    int resultTLE = 0;
    int resultRE = 0;
    
    for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    }
    // System.out.println();
    System.out.println("AC x " + resultAC);
    System.out.println("WA x " + resultWA);
    System.out.println("TLE x " + resultTLE);
    System.out.println("RE x " + resultRE);



  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    // System.out.println("Hello World!");
    Scanner scan = new Scanner(System.in);
    int num = scan.nextInt();//ここでコンソールに入力したものを取得
    
    int resultAC = 0;
    int resultWA = 0;
    int resultTLE = 0;
    int resultRE = 0;
    
    for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    }
    // System.out.println();
    System.out.println("AC x " + resultAC);
    System.out.println("WA x " + resultWA);
    System.out.println("TLE x " + resultTLE);
    System.out.println("RE x " + resultRE);



  }

} Main public static void main(String[] args) {
    // System.out.println("Hello World!");
    Scanner scan = new Scanner(System.in);
    int num = scan.nextInt();//ここでコンソールに入力したものを取得
    
    int resultAC = 0;
    int resultWA = 0;
    int resultTLE = 0;
    int resultRE = 0;
    
    for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    }
    // System.out.println();
    System.out.println("AC x " + resultAC);
    System.out.println("WA x " + resultWA);
    System.out.println("TLE x " + resultTLE);
    System.out.println("RE x " + resultRE);



  } main {
    // System.out.println("Hello World!");
    Scanner scan = new Scanner(System.in);
    int num = scan.nextInt();//ここでコンソールに入力したものを取得
    
    int resultAC = 0;
    int resultWA = 0;
    int resultTLE = 0;
    int resultRE = 0;
    
    for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    }
    // System.out.println();
    System.out.println("AC x " + resultAC);
    System.out.println("WA x " + resultWA);
    System.out.println("TLE x " + resultTLE);
    System.out.println("RE x " + resultRE);



  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int resultAC = 0; resultAC 0 int resultWA = 0; resultWA 0 int resultTLE = 0; resultTLE 0 int resultRE = 0; resultRE 0 for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    } int i=0; int i=0; i 0 i<num+1 i num+1 num 1 i++ i++ i {
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    } {
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    } String inputStr = scan.nextLine(); inputStr scan.nextLine() scan.nextLine scan switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        } inputStr case "AC"://scoreが5の時 "AC" case "AC"://scoreが5の時 resultAC += 1 resultAC 1 continue; case "WA"://scoreが4の時 "WA" case "WA"://scoreが4の時 resultWA += 1 resultWA 1 continue; case "TLE"://scoreが3の時 "TLE" case "TLE"://scoreが3の時 resultTLE += 1 resultTLE 1 continue; case "RE"://scoreが2の時 "RE" case "RE"://scoreが2の時 resultRE += 1 resultRE 1 continue; default://scoreが上記以外の時 default://scoreが上記以外の時 break; System.out.println("AC x " + resultAC) System.out.println System.out System System.out "AC x " + resultAC "AC x " resultAC System.out.println("WA x " + resultWA) System.out.println System.out System System.out "WA x " + resultWA "WA x " resultWA System.out.println("TLE x " + resultTLE) System.out.println System.out System System.out "TLE x " + resultTLE "TLE x " resultTLE System.out.println("RE x " + resultRE) System.out.println System.out System System.out "RE x " + resultRE "RE x " resultRE String[] args args public class Main {

  public static void main(String[] args) {
    // System.out.println("Hello World!");
    Scanner scan = new Scanner(System.in);
    int num = scan.nextInt();//ここでコンソールに入力したものを取得
    
    int resultAC = 0;
    int resultWA = 0;
    int resultTLE = 0;
    int resultRE = 0;
    
    for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    }
    // System.out.println();
    System.out.println("AC x " + resultAC);
    System.out.println("WA x " + resultWA);
    System.out.println("TLE x " + resultTLE);
    System.out.println("RE x " + resultRE);



  }

} public class Main {

  public static void main(String[] args) {
    // System.out.println("Hello World!");
    Scanner scan = new Scanner(System.in);
    int num = scan.nextInt();//ここでコンソールに入力したものを取得
    
    int resultAC = 0;
    int resultWA = 0;
    int resultTLE = 0;
    int resultRE = 0;
    
    for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    }
    // System.out.println();
    System.out.println("AC x " + resultAC);
    System.out.println("WA x " + resultWA);
    System.out.println("TLE x " + resultTLE);
    System.out.println("RE x " + resultRE);



  }

} Main
import java.util.Scanner;
public class Main {

  public static void main(String[] args) {
    // System.out.println("Hello World!");
    Scanner scan = new Scanner(System.in);
    int num = scan.nextInt();//ここでコンソールに入力したものを取得
    
    int resultAC = 0;
    int resultWA = 0;
    int resultTLE = 0;
    int resultRE = 0;
    
    for(int i=0; i<num+1; i++){
        
        
        String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
        
        
        switch (inputStr) {
            case "AC"://scoreが5の時
              resultAC += 1;
              continue;
            //   break;
            case "WA"://scoreが4の時
              resultWA += 1;
              continue;
            //   break;
            case "TLE"://scoreが3の時
              resultTLE += 1;
              continue;
            //   break;
            case "RE"://scoreが2の時
              resultRE += 1;
              continue;
            //   break;
            
            default://scoreが上記以外の時
              break;
        }
        
    }
    // System.out.println();
    System.out.println("AC x " + resultAC);
    System.out.println("WA x " + resultWA);
    System.out.println("TLE x " + resultTLE);
    System.out.println("RE x " + resultRE);



  }

}