import java.util.*; 
class Main 
{
public static void main(String args[]) 
{
Scanner sc = new Scanner(System.in); 
int n = Integer.parseInt(sc.nextLine()); 
int AC=0,WA=0,TLE=0,RE=0;
while(n-->0) 
{
String s = sc.nextLine(); 
if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.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.println("RE x "+RE);
} 
} import java.util.*; util.* java class Main 
{
public static void main(String args[]) 
{
Scanner sc = new Scanner(System.in); 
int n = Integer.parseInt(sc.nextLine()); 
int AC=0,WA=0,TLE=0,RE=0;
while(n-->0) 
{
String s = sc.nextLine(); 
if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.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.println("RE x "+RE);
} 
} Main public static void main(String args[]) 
{
Scanner sc = new Scanner(System.in); 
int n = Integer.parseInt(sc.nextLine()); 
int AC=0,WA=0,TLE=0,RE=0;
while(n-->0) 
{
String s = sc.nextLine(); 
if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.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.println("RE x "+RE);
} main {
Scanner sc = new Scanner(System.in); 
int n = Integer.parseInt(sc.nextLine()); 
int AC=0,WA=0,TLE=0,RE=0;
while(n-->0) 
{
String s = sc.nextLine(); 
if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.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.println("RE x "+RE);
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int AC=0 AC 0 WA=0 WA 0 TLE=0 TLE 0 RE=0; RE 0 while(n-->0) 
{
String s = sc.nextLine(); 
if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.equals("TLE")) 
{
TLE++;
} 
else 
{
RE++;
}
} n-->0 n-- n 0 {
String s = sc.nextLine(); 
if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.equals("TLE")) 
{
TLE++;
} 
else 
{
RE++;
}
} String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.equals("TLE")) 
{
TLE++;
} 
else 
{
RE++;
} s.equals("AC") s.equals s "AC" {
AC++;
} AC++ AC if(s.equals("WA")) 
{
WA++;
} 
else if(s.equals("TLE")) 
{
TLE++;
} 
else 
{
RE++;
} s.equals("WA") s.equals s "WA" {
WA++;
} WA++ WA if(s.equals("TLE")) 
{
TLE++;
} 
else 
{
RE++;
} s.equals("TLE") s.equals s "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.println("RE x "+RE) System.out.println System.out System System.out "RE x "+RE "RE x " RE String args[] args
import java.util.*; 
class Main 
{
public static void main(String args[]) 
{
Scanner sc = new Scanner(System.in); 
int n = Integer.parseInt(sc.nextLine()); 
int AC=0,WA=0,TLE=0,RE=0;
while(n-->0) 
{
String s = sc.nextLine(); 
if(s.equals("AC")) 
{
AC++;
} 
else if(s.equals("WA")) 
{
WA++;
} 
else if(s.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.println("RE x "+RE);
} 
}