import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String str = "";
        int ACCount = 0;
        int WACount = 0;
        int TLECount = 0;
        int RECount = 0;

        for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        }

        System.out.println("AC x \n" + ACCount);
        System.out.println("WA x \n" + WACount);
        System.out.println("TLE x \n" + TLECount);
        System.out.println("RE x \n" + RECount);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String str = "";
        int ACCount = 0;
        int WACount = 0;
        int TLECount = 0;
        int RECount = 0;

        for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        }

        System.out.println("AC x \n" + ACCount);
        System.out.println("WA x \n" + WACount);
        System.out.println("TLE x \n" + TLECount);
        System.out.println("RE x \n" + RECount);

    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String str = "";
        int ACCount = 0;
        int WACount = 0;
        int TLECount = 0;
        int RECount = 0;

        for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        }

        System.out.println("AC x \n" + ACCount);
        System.out.println("WA x \n" + WACount);
        System.out.println("TLE x \n" + TLECount);
        System.out.println("RE x \n" + RECount);

    } main {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String str = "";
        int ACCount = 0;
        int WACount = 0;
        int TLECount = 0;
        int RECount = 0;

        for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        }

        System.out.println("AC x \n" + ACCount);
        System.out.println("WA x \n" + WACount);
        System.out.println("TLE x \n" + TLECount);
        System.out.println("RE x \n" + RECount);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String str = ""; str "" int ACCount = 0; ACCount 0 int WACount = 0; WACount 0 int TLECount = 0; TLECount 0 int RECount = 0; RECount 0 for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        } int i = 0; int i = 0; i 0 i <= N i N i++ i++ i {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        } {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        } str = sc.nextLine() str sc.nextLine() sc.nextLine sc if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	} "AC".equals(str) "AC".equals "AC" str {
        		ACCount++;

        	} ACCount++ ACCount if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	} "WA".equals(str) "WA".equals "WA" str {
        		WACount++;
        	} WACount++ WACount if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	} "TLE".equals(str) "TLE".equals "TLE" str {
        		TLECount++;
        	} TLECount++ TLECount if("RE".equals(str)) {
        		RECount++;
        	} "RE".equals(str) "RE".equals "RE" str {
        		RECount++;
        	} RECount++ RECount System.out.println("AC x \n" + ACCount) System.out.println System.out System System.out "AC x \n" + ACCount "AC x \n" ACCount System.out.println("WA x \n" + WACount) System.out.println System.out System System.out "WA x \n" + WACount "WA x \n" WACount System.out.println("TLE x \n" + TLECount) System.out.println System.out System System.out "TLE x \n" + TLECount "TLE x \n" TLECount System.out.println("RE x \n" + RECount) System.out.println System.out System System.out "RE x \n" + RECount "RE x \n" RECount String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String str = "";
        int ACCount = 0;
        int WACount = 0;
        int TLECount = 0;
        int RECount = 0;

        for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        }

        System.out.println("AC x \n" + ACCount);
        System.out.println("WA x \n" + WACount);
        System.out.println("TLE x \n" + TLECount);
        System.out.println("RE x \n" + RECount);

    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String str = "";
        int ACCount = 0;
        int WACount = 0;
        int TLECount = 0;
        int RECount = 0;

        for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        }

        System.out.println("AC x \n" + ACCount);
        System.out.println("WA x \n" + WACount);
        System.out.println("TLE x \n" + TLECount);
        System.out.println("RE x \n" + RECount);

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String str = "";
        int ACCount = 0;
        int WACount = 0;
        int TLECount = 0;
        int RECount = 0;

        for(int i = 0; i <= N; i++) {
        	str = sc.nextLine();
        	if("AC".equals(str)) {
        		ACCount++;

        	} else if("WA".equals(str)) {
        		WACount++;
        	} else if("TLE".equals(str)) {
        		TLECount++;
        	} else if("RE".equals(str)) {
        		RECount++;
        	}
        }

        System.out.println("AC x \n" + ACCount);
        System.out.println("WA x \n" + WACount);
        System.out.println("TLE x \n" + TLECount);
        System.out.println("RE x \n" + RECount);

    }
}