import java.util.*;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String[]s = new String[N];
    
    int a=0, w=0, t=0, r=0;
    for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
}
    System.out.println("AC x "+a);
    System.out.println("WA x "+w);
    System.out.println("TLE x "+t);
    System.out.println("RE x "+r);
        
    }

}
 import java.util.*; util.* java public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String[]s = new String[N];
    
    int a=0, w=0, t=0, r=0;
    for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
}
    System.out.println("AC x "+a);
    System.out.println("WA x "+w);
    System.out.println("TLE x "+t);
    System.out.println("RE x "+r);
        
    }

} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String[]s = new String[N];
    
    int a=0, w=0, t=0, r=0;
    for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
}
    System.out.println("AC x "+a);
    System.out.println("WA x "+w);
    System.out.println("TLE x "+t);
    System.out.println("RE x "+r);
        
    } main {
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String[]s = new String[N];
    
    int a=0, w=0, t=0, r=0;
    for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
}
    System.out.println("AC x "+a);
    System.out.println("WA x "+w);
    System.out.println("TLE x "+t);
    System.out.println("RE x "+r);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[]s = new String[N]; s new String[N] N int a=0 a 0 w=0 w 0 t=0 t 0 r=0; r 0 for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
} int i=0; int i=0; i 0 i<N i N i++ i++ i {
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
} {
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
} s[i]=sc.next() s[i] s i sc.next() sc.next sc if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        } s[i].equals("AC") s[i].equals s[i] s i "AC" {
           a++;
        } a++ a if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        } s[i].equals("WA") s[i].equals s[i] s i "WA" {
            w++;
        } w++ w if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        } s[i].equals("TLE") s[i].equals s[i] s i "TLE" {
            t++;
        } t++ t if(s[i].equals("RE")){
            r++;
        } s[i].equals("RE") s[i].equals s[i] s i "RE" {
            r++;
        } r++ r System.out.println("AC x "+a) System.out.println System.out System System.out "AC x "+a "AC x " a System.out.println("WA x "+w) System.out.println System.out System System.out "WA x "+w "WA x " w System.out.println("TLE x "+t) System.out.println System.out System System.out "TLE x "+t "TLE x " t System.out.println("RE x "+r) System.out.println System.out System System.out "RE x "+r "RE x " r String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String[]s = new String[N];
    
    int a=0, w=0, t=0, r=0;
    for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
}
    System.out.println("AC x "+a);
    System.out.println("WA x "+w);
    System.out.println("TLE x "+t);
    System.out.println("RE x "+r);
        
    }

} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String[]s = new String[N];
    
    int a=0, w=0, t=0, r=0;
    for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
}
    System.out.println("AC x "+a);
    System.out.println("WA x "+w);
    System.out.println("TLE x "+t);
    System.out.println("RE x "+r);
        
    }

} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String[]s = new String[N];
    
    int a=0, w=0, t=0, r=0;
    for(int i=0; i<N; i++){
        s[i]=sc.next();
        if(s[i].equals("AC")){
           a++;
        }else if(s[i].equals("WA")){
            w++;
        }else if(s[i].equals("TLE")){
            t++;
        }else if(s[i].equals("RE")){
            r++;
        }
}
    System.out.println("AC x "+a);
    System.out.println("WA x "+w);
    System.out.println("TLE x "+t);
    System.out.println("RE x "+r);
        
    }

}

