import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner console = new Scanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		}
		System.out.println("AC x " + ac);
		System.out.println("WA x " + wa);
		System.out.println("TLE x " + tle);
		System.out.print("RE x " + re);		
	}
} import java.util.*; util.* java public class Main
{
	public static void main(String[] args)
	{
		Scanner console = new Scanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		}
		System.out.println("AC x " + ac);
		System.out.println("WA x " + wa);
		System.out.println("TLE x " + tle);
		System.out.print("RE x " + re);		
	}
} Main public static void main(String[] args)
	{
		Scanner console = new Scanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		}
		System.out.println("AC x " + ac);
		System.out.println("WA x " + wa);
		System.out.println("TLE x " + tle);
		System.out.print("RE x " + re);		
	} main {
		Scanner console = new Scanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		}
		System.out.println("AC x " + ac);
		System.out.println("WA x " + wa);
		System.out.println("TLE x " + tle);
		System.out.print("RE x " + re);		
	} Scanner console = new Scanner(System.in); console new Scanner(System.in) int n = console.nextInt(); n console.nextInt() console.nextInt console int ac = 0; ac 0 int wa = 0; wa 0 int tle = 0; tle 0 int re = 0; re 0 for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		} {
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		} String temp = console.next(); temp console.next() console.next console if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			} temp.equals("AC") temp.equals temp "AC" {
				ac ++;
			} ac ++ ac if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			} temp.equals("WA") temp.equals temp "WA" {
				wa ++;
			} wa ++ wa if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			} temp.equals("TLE") temp.equals temp "TLE" {
				tle ++;
			} tle ++ tle {
				re ++;
			} re ++ re System.out.println("AC x " + ac) System.out.println System.out System System.out "AC x " + ac "AC x " ac System.out.println("WA x " + wa) System.out.println System.out System System.out "WA x " + wa "WA x " wa System.out.println("TLE x " + tle) System.out.println System.out System System.out "TLE x " + tle "TLE x " tle System.out.print("RE x " + re) System.out.print System.out System System.out "RE x " + re "RE x " re String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner console = new Scanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		}
		System.out.println("AC x " + ac);
		System.out.println("WA x " + wa);
		System.out.println("TLE x " + tle);
		System.out.print("RE x " + re);		
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner console = new Scanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		}
		System.out.println("AC x " + ac);
		System.out.println("WA x " + wa);
		System.out.println("TLE x " + tle);
		System.out.print("RE x " + re);		
	}
} Main
import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner console = new Scanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.equals("TLE"))
			{
				tle ++;
			}
			else
			{
				re ++;
			}
		}
		System.out.println("AC x " + ac);
		System.out.println("WA x " + wa);
		System.out.println("TLE x " + tle);
		System.out.print("RE x " + re);		
	}
}
