/******************************************************************************

                            Online Java Compiler.
                Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.

*******************************************************************************/
import java.util.*;
import java.io.*;
public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		int n = Integer.parseInt(s);
		int w=0,x=0,y=0,z=0;
		for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		}
		System.out.println("AC x "+ w);
		System.out.println("WA x "+ x);
		System.out.println("TLE x "+ y);
		System.out.println("RE x "+ z);
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		int n = Integer.parseInt(s);
		int w=0,x=0,y=0,z=0;
		for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		}
		System.out.println("AC x "+ w);
		System.out.println("WA x "+ x);
		System.out.println("TLE x "+ y);
		System.out.println("RE x "+ z);
	}
} Main public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		int n = Integer.parseInt(s);
		int w=0,x=0,y=0,z=0;
		for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		}
		System.out.println("AC x "+ w);
		System.out.println("WA x "+ x);
		System.out.println("TLE x "+ y);
		System.out.println("RE x "+ z);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		int n = Integer.parseInt(s);
		int w=0,x=0,y=0,z=0;
		for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		}
		System.out.println("AC x "+ w);
		System.out.println("WA x "+ x);
		System.out.println("TLE x "+ y);
		System.out.println("RE x "+ z);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br int n = Integer.parseInt(s); n Integer.parseInt(s) Integer.parseInt Integer s int w=0 w 0 x=0 x 0 y=0 y 0 z=0; z 0 for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		} {
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		} s = br.readLine() s br.readLine() br.readLine br char l = s.charAt(0); l s.charAt(0) s.charAt s 0 if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++; l == 'A' l 'A' w++ w if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++; l == 'W' l 'W' x++ x if(l == 'T')
		        y++;
		    else 
		        z++; l == 'T' l 'T' y++ y z++ z System.out.println("AC x "+ w) System.out.println System.out System System.out "AC x "+ w "AC x " w System.out.println("WA x "+ x) System.out.println System.out System System.out "WA x "+ x "WA x " x System.out.println("TLE x "+ y) System.out.println System.out System System.out "TLE x "+ y "TLE x " y System.out.println("RE x "+ z) System.out.println System.out System System.out "RE x "+ z "RE x " z String[] args args public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		int n = Integer.parseInt(s);
		int w=0,x=0,y=0,z=0;
		for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		}
		System.out.println("AC x "+ w);
		System.out.println("WA x "+ x);
		System.out.println("TLE x "+ y);
		System.out.println("RE x "+ z);
	}
} public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		int n = Integer.parseInt(s);
		int w=0,x=0,y=0,z=0;
		for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		}
		System.out.println("AC x "+ w);
		System.out.println("WA x "+ x);
		System.out.println("TLE x "+ y);
		System.out.println("RE x "+ z);
	}
} Main
/******************************************************************************

                            Online Java Compiler.
                Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.

*******************************************************************************/
import java.util.*;
import java.io.*;
public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		int n = Integer.parseInt(s);
		int w=0,x=0,y=0,z=0;
		for(int i=0; i<n; i++)
		{
		    s = br.readLine();
		    char l = s.charAt(0);
		    if(l == 'A')
		        w++;
		    else if(l == 'W')
		        x++;
		    else if(l == 'T')
		        y++;
		    else 
		        z++;
		}
		System.out.println("AC x "+ w);
		System.out.println("WA x "+ x);
		System.out.println("TLE x "+ y);
		System.out.println("RE x "+ z);
	}
}
