import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} Main public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        }
    } main {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        }
    } try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        } catch(Exception e){
            System.out.println(e);
        } Exception e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int si[] = new int[4]; si new int[4] 4 for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            } int i=0; int i=0; i 0 i<N i N i++ i++ i {
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            } {
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            } String str = br.readLine(); str br.readLine() br.readLine br if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                } str.equals("AC") str.equals str "AC" {
                    si[0]++;
                } si[0]++ si[0] si 0 if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                } str.equals("WA") str.equals str "WA" {
                    si[1]++;
                } si[1]++ si[1] si 1 if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                } str.equals("TLE") str.equals str "TLE" {
                    si[2]++;
                } si[2]++ si[2] si 2 if(str.equals("RE")){
                    si[3]++;
                } str.equals("RE") str.equals str "RE" {
                    si[3]++;
                } si[3]++ si[3] si 3 System.out.println("AC x " + si[0]) System.out.println System.out System System.out "AC x " + si[0] "AC x " si[0] si 0 System.out.println("WA x " + si[1]) System.out.println System.out System System.out "WA x " + si[1] "WA x " si[1] si 1 System.out.println("TLE x " + si[2]) System.out.println System.out System System.out "TLE x " + si[2] "TLE x " si[2] si 2 System.out.println("RE x " + si[3]) System.out.println System.out System System.out "RE x " + si[3] "RE x " si[3] si 3 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int si[] = new int[4];
            
            for(int i=0; i<N; i++){
                String str = br.readLine();
                
                if(str.equals("AC")){
                    si[0]++;
                }else if(str.equals("WA")){
                    si[1]++;
                }else if(str.equals("TLE")){
                    si[2]++;
                }else if(str.equals("RE")){
                    si[3]++;
                }
            }
            
            System.out.println("AC x " + si[0]);
            System.out.println("WA x " + si[1]);
            System.out.println("TLE x " + si[2]);
            System.out.println("RE x " + si[3]);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
}