/**
 * 
 */


/**
 * @author Jnaneswar Reddy
 *
 */
import java.util.*;
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int n;
		Scanner scan =new Scanner(System.in);
		n=scan.nextInt();
		scan.nextLine();
		HashMap<String,Integer> m = new HashMap<>();
//		for(int i=0;i<4;i++)
//		{  String s1= scan.nextLine();
//			if(!m.containsKey(s1))
//			{
//				m.put(s1, 0);
//			}
//		}
		m.put("AC", 0);
		m.put("WA", 0);
		m.put("TLE", 0);
		m.put("RE", 0);
		
		
		for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}}
		
	          System.out.println("AC" +
	                             " x " + m.get("AC"));
	          System.out.println("WA" +
                      " x " + m.get("WA"));
	          
	          System.out.println("TLE" +
                      " x " + m.get("TLE"));
	          System.out.println("RE" +
                      " x " + m.get("RE"));
		
	}

} import java.util.*; util.* java public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int n;
		Scanner scan =new Scanner(System.in);
		n=scan.nextInt();
		scan.nextLine();
		HashMap<String,Integer> m = new HashMap<>();
//		for(int i=0;i<4;i++)
//		{  String s1= scan.nextLine();
//			if(!m.containsKey(s1))
//			{
//				m.put(s1, 0);
//			}
//		}
		m.put("AC", 0);
		m.put("WA", 0);
		m.put("TLE", 0);
		m.put("RE", 0);
		
		
		for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}}
		
	          System.out.println("AC" +
	                             " x " + m.get("AC"));
	          System.out.println("WA" +
                      " x " + m.get("WA"));
	          
	          System.out.println("TLE" +
                      " x " + m.get("TLE"));
	          System.out.println("RE" +
                      " x " + m.get("RE"));
		
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int n;
		Scanner scan =new Scanner(System.in);
		n=scan.nextInt();
		scan.nextLine();
		HashMap<String,Integer> m = new HashMap<>();
//		for(int i=0;i<4;i++)
//		{  String s1= scan.nextLine();
//			if(!m.containsKey(s1))
//			{
//				m.put(s1, 0);
//			}
//		}
		m.put("AC", 0);
		m.put("WA", 0);
		m.put("TLE", 0);
		m.put("RE", 0);
		
		
		for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}}
		
	          System.out.println("AC" +
	                             " x " + m.get("AC"));
	          System.out.println("WA" +
                      " x " + m.get("WA"));
	          
	          System.out.println("TLE" +
                      " x " + m.get("TLE"));
	          System.out.println("RE" +
                      " x " + m.get("RE"));
		
	} main {
		// TODO Auto-generated method stub
		int n;
		Scanner scan =new Scanner(System.in);
		n=scan.nextInt();
		scan.nextLine();
		HashMap<String,Integer> m = new HashMap<>();
//		for(int i=0;i<4;i++)
//		{  String s1= scan.nextLine();
//			if(!m.containsKey(s1))
//			{
//				m.put(s1, 0);
//			}
//		}
		m.put("AC", 0);
		m.put("WA", 0);
		m.put("TLE", 0);
		m.put("RE", 0);
		
		
		for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}}
		
	          System.out.println("AC" +
	                             " x " + m.get("AC"));
	          System.out.println("WA" +
                      " x " + m.get("WA"));
	          
	          System.out.println("TLE" +
                      " x " + m.get("TLE"));
	          System.out.println("RE" +
                      " x " + m.get("RE"));
		
	} int n; n Scanner scan =new Scanner(System.in); scan new Scanner(System.in) n=scan.nextInt() n scan.nextInt() scan.nextInt scan scan.nextLine() scan.nextLine scan HashMap<String,Integer> m = new HashMap<>(); m new HashMap<>() m.put("AC", 0) m.put m "AC" 0 m.put("WA", 0) m.put m "WA" 0 m.put("TLE", 0) m.put m "TLE" 0 m.put("RE", 0) m.put m "RE" 0 for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}} int i=0; int i=0; i 0 i<n i n i++ i++ i {  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}} {  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}} String s1= new String(scan.nextLine()); s1 new String(scan.nextLine()) if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		} !m.containsKey(s1) m.containsKey(s1) m.containsKey m s1 {
				m.put(s1, 0);
			} m.put(s1, 0) m.put m s1 0 {
				m.put(s1,(m.get(s1)+1));
			
			
		} m.put(s1,(m.get(s1)+1)) m.put m s1 (m.get(s1)+1) m.get(s1) m.get m s1 1 System.out.println("AC" +
	                             " x " + m.get("AC")) System.out.println System.out System System.out "AC" +
	                             " x " + m.get("AC") "AC" +
	                             " x " + m.get("AC") "AC" " x " m.get("AC") m.get m "AC" System.out.println("WA" +
                      " x " + m.get("WA")) System.out.println System.out System System.out "WA" +
                      " x " + m.get("WA") "WA" +
                      " x " + m.get("WA") "WA" " x " m.get("WA") m.get m "WA" System.out.println("TLE" +
                      " x " + m.get("TLE")) System.out.println System.out System System.out "TLE" +
                      " x " + m.get("TLE") "TLE" +
                      " x " + m.get("TLE") "TLE" " x " m.get("TLE") m.get m "TLE" System.out.println("RE" +
                      " x " + m.get("RE")) System.out.println System.out System System.out "RE" +
                      " x " + m.get("RE") "RE" +
                      " x " + m.get("RE") "RE" " x " m.get("RE") m.get m "RE" String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int n;
		Scanner scan =new Scanner(System.in);
		n=scan.nextInt();
		scan.nextLine();
		HashMap<String,Integer> m = new HashMap<>();
//		for(int i=0;i<4;i++)
//		{  String s1= scan.nextLine();
//			if(!m.containsKey(s1))
//			{
//				m.put(s1, 0);
//			}
//		}
		m.put("AC", 0);
		m.put("WA", 0);
		m.put("TLE", 0);
		m.put("RE", 0);
		
		
		for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}}
		
	          System.out.println("AC" +
	                             " x " + m.get("AC"));
	          System.out.println("WA" +
                      " x " + m.get("WA"));
	          
	          System.out.println("TLE" +
                      " x " + m.get("TLE"));
	          System.out.println("RE" +
                      " x " + m.get("RE"));
		
	}

} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int n;
		Scanner scan =new Scanner(System.in);
		n=scan.nextInt();
		scan.nextLine();
		HashMap<String,Integer> m = new HashMap<>();
//		for(int i=0;i<4;i++)
//		{  String s1= scan.nextLine();
//			if(!m.containsKey(s1))
//			{
//				m.put(s1, 0);
//			}
//		}
		m.put("AC", 0);
		m.put("WA", 0);
		m.put("TLE", 0);
		m.put("RE", 0);
		
		
		for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}}
		
	          System.out.println("AC" +
	                             " x " + m.get("AC"));
	          System.out.println("WA" +
                      " x " + m.get("WA"));
	          
	          System.out.println("TLE" +
                      " x " + m.get("TLE"));
	          System.out.println("RE" +
                      " x " + m.get("RE"));
		
	}

} Main
/**
 * 
 */


/**
 * @author Jnaneswar Reddy
 *
 */
import java.util.*;
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int n;
		Scanner scan =new Scanner(System.in);
		n=scan.nextInt();
		scan.nextLine();
		HashMap<String,Integer> m = new HashMap<>();
//		for(int i=0;i<4;i++)
//		{  String s1= scan.nextLine();
//			if(!m.containsKey(s1))
//			{
//				m.put(s1, 0);
//			}
//		}
		m.put("AC", 0);
		m.put("WA", 0);
		m.put("TLE", 0);
		m.put("RE", 0);
		
		
		for(int i=0;i<n;i++)
		{  String s1= new String(scan.nextLine());
			
		if(!m.containsKey(s1))
			{
				m.put(s1, 0);
			}
		else {
				m.put(s1,(m.get(s1)+1));
			
			
		}}
		
	          System.out.println("AC" +
	                             " x " + m.get("AC"));
	          System.out.println("WA" +
                      " x " + m.get("WA"));
	          
	          System.out.println("TLE" +
                      " x " + m.get("TLE"));
	          System.out.println("RE" +
                      " x " + m.get("RE"));
		
	}

}
