import java.util.Scanner;

public class Main {
		static String s1="AC";
		static String s2="WA";
		static String s3="TLE";
		static String s4="RE";
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int c1=0,c2=0,c3=0,c4=0;
		for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		}
		System.out.println(s1+" "+"x"+" "+c1);
		System.out.println(s2+" "+"x"+" "+c2);
		System.out.println(s3+" "+"x"+" "+c3);
		System.out.println(s4+" "+"x"+" "+c4);
		

	}

} import java.util.Scanner; Scanner java.util public class Main {
		static String s1="AC";
		static String s2="WA";
		static String s3="TLE";
		static String s4="RE";
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int c1=0,c2=0,c3=0,c4=0;
		for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		}
		System.out.println(s1+" "+"x"+" "+c1);
		System.out.println(s2+" "+"x"+" "+c2);
		System.out.println(s3+" "+"x"+" "+c3);
		System.out.println(s4+" "+"x"+" "+c4);
		

	}

} Main static String s1="AC"; s1 "AC" static String s2="WA"; s2 "WA" static String s3="TLE"; s3 "TLE" static String s4="RE"; s4 "RE" public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int c1=0,c2=0,c3=0,c4=0;
		for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		}
		System.out.println(s1+" "+"x"+" "+c1);
		System.out.println(s2+" "+"x"+" "+c2);
		System.out.println(s3+" "+"x"+" "+c3);
		System.out.println(s4+" "+"x"+" "+c4);
		

	} main {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int c1=0,c2=0,c3=0,c4=0;
		for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		}
		System.out.println(s1+" "+"x"+" "+c1);
		System.out.println(s2+" "+"x"+" "+c2);
		System.out.println(s3+" "+"x"+" "+c3);
		System.out.println(s4+" "+"x"+" "+c4);
		

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int c1=0 c1 0 c2=0 c2 0 c3=0 c3 0 c4=0; c4 0 for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		} {
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		} String s=scan.next(); s scan.next() scan.next scan if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++; s.contains(s1) s.contains s s1 c1++ c1 if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++; s.contains(s2) s.contains s s2 c2++ c2 if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++; s.contains(s3) s.contains s s3 c3++ c3 if(s.contains(s4)) c4++; s.contains(s4) s.contains s s4 c4++ c4 System.out.println(s1+" "+"x"+" "+c1) System.out.println System.out System System.out s1+" "+"x"+" "+c1 " " "x" s1+" "+"x"+" "+c1 s1 " " "x" " " c1 System.out.println(s2+" "+"x"+" "+c2) System.out.println System.out System System.out s2+" "+"x"+" "+c2 " " "x" s2+" "+"x"+" "+c2 s2 " " "x" " " c2 System.out.println(s3+" "+"x"+" "+c3) System.out.println System.out System System.out s3+" "+"x"+" "+c3 " " "x" s3+" "+"x"+" "+c3 s3 " " "x" " " c3 System.out.println(s4+" "+"x"+" "+c4) System.out.println System.out System System.out s4+" "+"x"+" "+c4 " " "x" s4+" "+"x"+" "+c4 s4 " " "x" " " c4 String[] args args public class Main {
		static String s1="AC";
		static String s2="WA";
		static String s3="TLE";
		static String s4="RE";
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int c1=0,c2=0,c3=0,c4=0;
		for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		}
		System.out.println(s1+" "+"x"+" "+c1);
		System.out.println(s2+" "+"x"+" "+c2);
		System.out.println(s3+" "+"x"+" "+c3);
		System.out.println(s4+" "+"x"+" "+c4);
		

	}

} public class Main {
		static String s1="AC";
		static String s2="WA";
		static String s3="TLE";
		static String s4="RE";
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int c1=0,c2=0,c3=0,c4=0;
		for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		}
		System.out.println(s1+" "+"x"+" "+c1);
		System.out.println(s2+" "+"x"+" "+c2);
		System.out.println(s3+" "+"x"+" "+c3);
		System.out.println(s4+" "+"x"+" "+c4);
		

	}

} Main
import java.util.Scanner;

public class Main {
		static String s1="AC";
		static String s2="WA";
		static String s3="TLE";
		static String s4="RE";
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int c1=0,c2=0,c3=0,c4=0;
		for	(int i=0;i<n;i++)
		{
			
			String s=scan.next();
			if(s.contains(s1)) c1++;
			else if(s.contains(s2)) c2++;
			else if (s.contains(s3)) c3++;
			else if(s.contains(s4)) c4++;
		}
		System.out.println(s1+" "+"x"+" "+c1);
		System.out.println(s2+" "+"x"+" "+c2);
		System.out.println(s3+" "+"x"+" "+c3);
		System.out.println(s4+" "+"x"+" "+c4);
		

	}

}
