import java.util.*;import static java.lang.System.*;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int w=0;int x=0;int y=0;int z=0;for(int i=s.nextInt();i>0;i--){String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;}out.println("AC x "+w);out.println("WA x "+x);out.println("TLE x "+y);out.println("RE x "+z);}} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int w=0;int x=0;int y=0;int z=0;for(int i=s.nextInt();i>0;i--){String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;}out.println("AC x "+w);out.println("WA x "+x);out.println("TLE x "+y);out.println("RE x "+z);}} Main public static void main(String[] a){Scanner s=new Scanner(System.in);int w=0;int x=0;int y=0;int z=0;for(int i=s.nextInt();i>0;i--){String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;}out.println("AC x "+w);out.println("WA x "+x);out.println("TLE x "+y);out.println("RE x "+z);} main {Scanner s=new Scanner(System.in);int w=0;int x=0;int y=0;int z=0;for(int i=s.nextInt();i>0;i--){String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;}out.println("AC x "+w);out.println("WA x "+x);out.println("TLE x "+y);out.println("RE x "+z);} Scanner s=new Scanner(System.in); s new Scanner(System.in) int w=0; w 0 int x=0; x 0 int y=0; y 0 int z=0; z 0 for(int i=s.nextInt();i>0;i--){String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;} int i=s.nextInt(); int i=s.nextInt(); i s.nextInt() s.nextInt s i>0 i 0 i-- i-- i {String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;} {String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;} String b=s.next(); b s.next() s.next s if(b.equals("AC"))w++; b.equals("AC") b.equals b "AC" w++ w if(b.equals("WA"))x++; b.equals("WA") b.equals b "WA" x++ x if(b.equals("TLE"))y++; b.equals("TLE") b.equals b "TLE" y++ y if(b.equals("RE"))z++; b.equals("RE") b.equals b "RE" z++ z out.println("AC x "+w) out.println out "AC x "+w "AC x " w out.println("WA x "+x) out.println out "WA x "+x "WA x " x out.println("TLE x "+y) out.println out "TLE x "+y "TLE x " y out.println("RE x "+z) out.println out "RE x "+z "RE x " z String[] a a
import java.util.*;import static java.lang.System.*;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int w=0;int x=0;int y=0;int z=0;for(int i=s.nextInt();i>0;i--){String b=s.next();if(b.equals("AC"))w++;if(b.equals("WA"))x++;if(b.equals("TLE"))y++;if(b.equals("RE"))z++;}out.println("AC x "+w);out.println("WA x "+x);out.println("TLE x "+y);out.println("RE x "+z);}}