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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int ac = 0, wa = 0, tle = 0, re = 0;
		
		for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		}
		
		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 IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int ac = 0, wa = 0, tle = 0, re = 0;
		
		for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		}
		
		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 IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int ac = 0, wa = 0, tle = 0, re = 0;
		
		for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		}
		
		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;
		
		for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		}
		
		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 for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		} {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		} String str = br.readLine(); str br.readLine() br.readLine br if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++; str.equals("AC") str.equals str "AC" ac++ ac if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++; str.equals("WA") str.equals str "WA" wa++ wa if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++; str.equals("TLE") str.equals str "TLE" tle++ tle if(str.equals("RE"))
				re++; str.equals("RE") str.equals str "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.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 IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int ac = 0, wa = 0, tle = 0, re = 0;
		
		for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		}
		
		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 IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int ac = 0, wa = 0, tle = 0, re = 0;
		
		for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		}
		
		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 IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int ac = 0, wa = 0, tle = 0, re = 0;
		
		for(int i=0; i<n; i++) {
			String str = br.readLine();
			
			if(str.equals("AC"))
				ac++;
			else if(str.equals("WA"))
				wa++;
			else if(str.equals("TLE"))
				tle++;
			else if(str.equals("RE"))
				re++;
		}
		
		System.out.println("AC x "+ ac);
		System.out.println("WA x "+ wa);
		System.out.println("TLE x "+ tle);
		System.out.println("RE x "+ re);
	}

}