
import java.util.Scanner;

public class Main {

                 public static void main(String[] args) {
                                  Scanner ob = new Scanner(System.in);
                                  String a[] = new String[1000000];
                                  int n = ob.nextInt();
                               //   a[0]="AC";
                                //  if(a[0]=="AC"){System.out.println("i");}
                                       int c1=0,c2=0,c3=0,c4=0;
                                  for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  }
                                  //for(int i=0;i<n;i++){System.out.println(a[i]);}
                             
                                  System.out.println("AC x "+c1);
                                  System.out.println("WA x "+c2);
                                  System.out.println("TLE x "+c3);
                                  System.out.println("RE x "+c4);
                 }

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

                 public static void main(String[] args) {
                                  Scanner ob = new Scanner(System.in);
                                  String a[] = new String[1000000];
                                  int n = ob.nextInt();
                               //   a[0]="AC";
                                //  if(a[0]=="AC"){System.out.println("i");}
                                       int c1=0,c2=0,c3=0,c4=0;
                                  for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  }
                                  //for(int i=0;i<n;i++){System.out.println(a[i]);}
                             
                                  System.out.println("AC x "+c1);
                                  System.out.println("WA x "+c2);
                                  System.out.println("TLE x "+c3);
                                  System.out.println("RE x "+c4);
                 }

} Main public static void main(String[] args) {
                                  Scanner ob = new Scanner(System.in);
                                  String a[] = new String[1000000];
                                  int n = ob.nextInt();
                               //   a[0]="AC";
                                //  if(a[0]=="AC"){System.out.println("i");}
                                       int c1=0,c2=0,c3=0,c4=0;
                                  for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  }
                                  //for(int i=0;i<n;i++){System.out.println(a[i]);}
                             
                                  System.out.println("AC x "+c1);
                                  System.out.println("WA x "+c2);
                                  System.out.println("TLE x "+c3);
                                  System.out.println("RE x "+c4);
                 } main {
                                  Scanner ob = new Scanner(System.in);
                                  String a[] = new String[1000000];
                                  int n = ob.nextInt();
                               //   a[0]="AC";
                                //  if(a[0]=="AC"){System.out.println("i");}
                                       int c1=0,c2=0,c3=0,c4=0;
                                  for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  }
                                  //for(int i=0;i<n;i++){System.out.println(a[i]);}
                             
                                  System.out.println("AC x "+c1);
                                  System.out.println("WA x "+c2);
                                  System.out.println("TLE x "+c3);
                                  System.out.println("RE x "+c4);
                 } Scanner ob = new Scanner(System.in); ob new Scanner(System.in) String a[] = new String[1000000]; a new String[1000000] 1000000 int n = ob.nextInt(); n ob.nextInt() ob.nextInt ob int c1=0 c1 0 c2=0 c2 0 c3=0 c3 0 c4=0; c4 0 for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  } {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  } a[i] = ob.next() a[i] a i ob.next() ob.next ob if("AC".equals(a[i])){c1++;} "AC".equals(a[i]) "AC".equals "AC" a[i] a i {c1++;} c1++ c1 if("WA".equals(a[i])){c2++;} "WA".equals(a[i]) "WA".equals "WA" a[i] a i {c2++;} c2++ c2 if("TLE".equals(a[i])){c3++;} "TLE".equals(a[i]) "TLE".equals "TLE" a[i] a i {c3++;} c3++ c3 if("RE".equals(a[i])){c4++;} "RE".equals(a[i]) "RE".equals "RE" a[i] a i {c4++;} c4++ c4 System.out.println("AC x "+c1) System.out.println System.out System System.out "AC x "+c1 "AC x " c1 System.out.println("WA x "+c2) System.out.println System.out System System.out "WA x "+c2 "WA x " c2 System.out.println("TLE x "+c3) System.out.println System.out System System.out "TLE x "+c3 "TLE x " c3 System.out.println("RE x "+c4) System.out.println System.out System System.out "RE x "+c4 "RE x " c4 String[] args args public class Main {

                 public static void main(String[] args) {
                                  Scanner ob = new Scanner(System.in);
                                  String a[] = new String[1000000];
                                  int n = ob.nextInt();
                               //   a[0]="AC";
                                //  if(a[0]=="AC"){System.out.println("i");}
                                       int c1=0,c2=0,c3=0,c4=0;
                                  for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  }
                                  //for(int i=0;i<n;i++){System.out.println(a[i]);}
                             
                                  System.out.println("AC x "+c1);
                                  System.out.println("WA x "+c2);
                                  System.out.println("TLE x "+c3);
                                  System.out.println("RE x "+c4);
                 }

} public class Main {

                 public static void main(String[] args) {
                                  Scanner ob = new Scanner(System.in);
                                  String a[] = new String[1000000];
                                  int n = ob.nextInt();
                               //   a[0]="AC";
                                //  if(a[0]=="AC"){System.out.println("i");}
                                       int c1=0,c2=0,c3=0,c4=0;
                                  for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  }
                                  //for(int i=0;i<n;i++){System.out.println(a[i]);}
                             
                                  System.out.println("AC x "+c1);
                                  System.out.println("WA x "+c2);
                                  System.out.println("TLE x "+c3);
                                  System.out.println("RE x "+c4);
                 }

} Main

import java.util.Scanner;

public class Main {

                 public static void main(String[] args) {
                                  Scanner ob = new Scanner(System.in);
                                  String a[] = new String[1000000];
                                  int n = ob.nextInt();
                               //   a[0]="AC";
                                //  if(a[0]=="AC"){System.out.println("i");}
                                       int c1=0,c2=0,c3=0,c4=0;
                                  for (int i = 0; i < n; i++) {
                                                   a[i] = ob.next();
                                                    if("AC".equals(a[i])){c1++;}
                                                   if("WA".equals(a[i])){c2++;}
                                                   if("TLE".equals(a[i])){c3++;}
                                                   if("RE".equals(a[i])){c4++;}
                                  }
                                  //for(int i=0;i<n;i++){System.out.println(a[i]);}
                             
                                  System.out.println("AC x "+c1);
                                  System.out.println("WA x "+c2);
                                  System.out.println("TLE x "+c3);
                                  System.out.println("RE x "+c4);
                 }

}
