import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int ac = 0,wa= 0,tle= 0,re=0;
		
		while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		}
		System.out.println("AC x "+ac);
		System.out.println("WA x "+wa);
		System.out.println("TLE x "+tle);
		System.out.println("RE x "+re);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int ac = 0,wa= 0,tle= 0,re=0;
		
		while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		}
		System.out.println("AC x "+ac);
		System.out.println("WA x "+wa);
		System.out.println("TLE x "+tle);
		System.out.println("RE x "+re);
	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int ac = 0,wa= 0,tle= 0,re=0;
		
		while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		}
		System.out.println("AC x "+ac);
		System.out.println("WA x "+wa);
		System.out.println("TLE x "+tle);
		System.out.println("RE x "+re);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int ac = 0,wa= 0,tle= 0,re=0;
		
		while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		}
		System.out.println("AC x "+ac);
		System.out.println("WA x "+wa);
		System.out.println("TLE x "+tle);
		System.out.println("RE x "+re);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int ac = 0 ac 0 wa= 0 wa 0 tle= 0 tle 0 re=0; re 0 while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		} n-- > 0 n-- n 0 {
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		} char ch = br.readLine().charAt(0); ch br.readLine().charAt(0) br.readLine().charAt br.readLine() br.readLine br 0 switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		} ch case 'A': 'A' case 'A': {
				ac++;
				break;
			} ac++ ac break; case 'W': 'W' case 'W': {
				wa++;
				break;
			} wa++ wa break; case 'T': 'T' case 'T': {
				tle++;
				break;
			} tle++ tle break; case 'R': 'R' case 'R': {
				re++;
				break;
			} re++ re break; 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.println("RE x "+re) System.out.println System.out System System.out "RE x "+re "RE x " re String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int ac = 0,wa= 0,tle= 0,re=0;
		
		while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		}
		System.out.println("AC x "+ac);
		System.out.println("WA x "+wa);
		System.out.println("TLE x "+tle);
		System.out.println("RE x "+re);
	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int ac = 0,wa= 0,tle= 0,re=0;
		
		while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		}
		System.out.println("AC x "+ac);
		System.out.println("WA x "+wa);
		System.out.println("TLE x "+tle);
		System.out.println("RE x "+re);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int ac = 0,wa= 0,tle= 0,re=0;
		
		while(n-- > 0)
		{
			
		
		char ch = br.readLine().charAt(0);
		//System.out.println(ch);
		switch(ch)
		{
			case 'A':
			{
				ac++;
				break;
			}
				
			case 'W':
			{
				wa++;
				break;
			}
				
			case 'T':
			{
				tle++;
				break;
			}
			
			case 'R':
			{
				re++;
				break;
			}
		
		}
		}
		System.out.println("AC x "+ac);
		System.out.println("WA x "+wa);
		System.out.println("TLE x "+tle);
		System.out.println("RE x "+re);
	}

}
