import java.util.*;
class Main
{
public static void main(String args[])
{
    int a=0,w=0,r=0,t=0;
Scanner sc=new Scanner(System.in);
int n= sc.nextInt();
String s[]=new String[n];
sc.nextLine();

for(int i=0;i<n;i++)
{
s[i]=sc.nextLine();
}
for(int i=0;i<n;i++)
{
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
}
System.out.println("AC   x    "+ a);
System.out.println("WA  x   "+w);
System.out.println("TLE  x   "+t);
System.out.println("RE x   "+r);

}
} import java.util.*; util.* java class Main
{
public static void main(String args[])
{
    int a=0,w=0,r=0,t=0;
Scanner sc=new Scanner(System.in);
int n= sc.nextInt();
String s[]=new String[n];
sc.nextLine();

for(int i=0;i<n;i++)
{
s[i]=sc.nextLine();
}
for(int i=0;i<n;i++)
{
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
}
System.out.println("AC   x    "+ a);
System.out.println("WA  x   "+w);
System.out.println("TLE  x   "+t);
System.out.println("RE x   "+r);

}
} Main public static void main(String args[])
{
    int a=0,w=0,r=0,t=0;
Scanner sc=new Scanner(System.in);
int n= sc.nextInt();
String s[]=new String[n];
sc.nextLine();

for(int i=0;i<n;i++)
{
s[i]=sc.nextLine();
}
for(int i=0;i<n;i++)
{
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
}
System.out.println("AC   x    "+ a);
System.out.println("WA  x   "+w);
System.out.println("TLE  x   "+t);
System.out.println("RE x   "+r);

} main {
    int a=0,w=0,r=0,t=0;
Scanner sc=new Scanner(System.in);
int n= sc.nextInt();
String s[]=new String[n];
sc.nextLine();

for(int i=0;i<n;i++)
{
s[i]=sc.nextLine();
}
for(int i=0;i<n;i++)
{
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
}
System.out.println("AC   x    "+ a);
System.out.println("WA  x   "+w);
System.out.println("TLE  x   "+t);
System.out.println("RE x   "+r);

} int a=0 a 0 w=0 w 0 r=0 r 0 t=0; t 0 Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n= sc.nextInt(); n sc.nextInt() sc.nextInt sc String s[]=new String[n]; s new String[n] n sc.nextLine() sc.nextLine sc for(int i=0;i<n;i++)
{
s[i]=sc.nextLine();
} int i=0; int i=0; i 0 i<n i n i++ i++ i {
s[i]=sc.nextLine();
} {
s[i]=sc.nextLine();
} s[i]=sc.nextLine() s[i] s i sc.nextLine() sc.nextLine sc for(int i=0;i<n;i++)
{
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
} int i=0; int i=0; i 0 i<n i n i++ i++ i {
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
} {
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
} if(s[i].equals("AC"))
  a++; s[i].equals("AC") s[i].equals s[i] s i "AC" a++ a if(s[i].equals("WA"))
  w++; s[i].equals("WA") s[i].equals s[i] s i "WA" w++ w if(s[i].equals("TLE"))
 t++; s[i].equals("TLE") s[i].equals s[i] s i "TLE" t++ t if(s[i].equals("RE"))
r++; s[i].equals("RE") s[i].equals s[i] s i "RE" r++ r System.out.println("AC   x    "+ a) System.out.println System.out System System.out "AC   x    "+ a "AC   x    " a System.out.println("WA  x   "+w) System.out.println System.out System System.out "WA  x   "+w "WA  x   " w System.out.println("TLE  x   "+t) System.out.println System.out System System.out "TLE  x   "+t "TLE  x   " t System.out.println("RE x   "+r) System.out.println System.out System System.out "RE x   "+r "RE x   " r String args[] args
import java.util.*;
class Main
{
public static void main(String args[])
{
    int a=0,w=0,r=0,t=0;
Scanner sc=new Scanner(System.in);
int n= sc.nextInt();
String s[]=new String[n];
sc.nextLine();

for(int i=0;i<n;i++)
{
s[i]=sc.nextLine();
}
for(int i=0;i<n;i++)
{
if(s[i].equals("AC"))
  a++;
if(s[i].equals("WA"))
  w++;
if(s[i].equals("TLE"))
 t++;
if(s[i].equals("RE"))
r++;
}
System.out.println("AC   x    "+ a);
System.out.println("WA  x   "+w);
System.out.println("TLE  x   "+t);
System.out.println("RE x   "+r);

}
}