import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	

		Scanner sc=new Scanner(System.in);
      
		  int n=sc.nextInt();
      int c1=0,c2=0,c3=0,c4=0;
      
		 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    }
                    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.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	

		Scanner sc=new Scanner(System.in);
      
		  int n=sc.nextInt();
      int c1=0,c2=0,c3=0,c4=0;
      
		 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    }
                    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) {
		// TODO Auto-generated method stub

	

		Scanner sc=new Scanner(System.in);
      
		  int n=sc.nextInt();
      int c1=0,c2=0,c3=0,c4=0;
      
		 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    }
                    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 {
		// TODO Auto-generated method stub

	

		Scanner sc=new Scanner(System.in);
      
		  int n=sc.nextInt();
      int c1=0,c2=0,c3=0,c4=0;
      
		 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    }
                    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 sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int c1=0 c1 0 c2=0 c2 0 c3=0 c3 0 c4=0; c4 0 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    } int i=1; int i=1; i 1 i<=n i n i++ i++ i {
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    } {
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    } String s=sc.next(); s sc.next() sc.next sc if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           } s.contains("AC") s.contains s "AC" {
				c1++;
		} c1++ c1 if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           } s.contains("WA") s.contains s "WA" {
c2++;
} c2++ c2 if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           } s.contains("TLE") s.contains s "TLE" {
c3++;
           } c3++ c3 if(s.contains("RE")){
c4++;
           } s.contains("RE") s.contains s "RE" {
c4++;
           } c4++ c4 System.out.println("AC "+"x "+c1) System.out.println System.out System System.out "AC "+"x "+c1 "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 "WA " "x " c2 System.out.println("TLE "+"x "+c3) System.out.println System.out System System.out "TLE "+"x "+c3 "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 "RE " "x " c4 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	

		Scanner sc=new Scanner(System.in);
      
		  int n=sc.nextInt();
      int c1=0,c2=0,c3=0,c4=0;
      
		 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    }
                    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) {
		// TODO Auto-generated method stub

	

		Scanner sc=new Scanner(System.in);
      
		  int n=sc.nextInt();
      int c1=0,c2=0,c3=0,c4=0;
      
		 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    }
                    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.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	

		Scanner sc=new Scanner(System.in);
      
		  int n=sc.nextInt();
      int c1=0,c2=0,c3=0,c4=0;
      
		 for(int i=1;i<=n;i++){
			String s=sc.next();
           if(s.contains("AC")){
				c1++;
		}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
           }else if(s.contains("RE")){
c4++;
           }
                    }
                    System.out.println("AC "+"x "+c1);
                     System.out.println("WA "+"x "+c2);
					 System.out.println("TLE "+"x "+c3);
                     System.out.println("RE "+"x "+c4);
                    }
                    }