Problem2097--ABC173B - Judge Status Summary

2097: ABC173B - Judge Status Summary

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Time Limit: 2 sec / Memory Limit: 1024 MB

Problem Statement
Takahashi is participating in a programming contest called AXC002, and he has just submitted his code to Problem A.
The problem has N test cases.
For each test case i (1≤i≤N), you are given a string Si representing the verdict for that test case. Find the numbers of test cases for which the verdict is AC, WA, TLE, and RE, respectively.
See the Output section for the output format.

Constraints

  • 1N105
  • Si is AC, WA, TLE, or RE.

Input

Input is given from Standard Input in the following format:

N
S1
SN

Output

Let C0C1C2, and C3 be the numbers of test cases for which the verdict is AC, WA, TLE, and RE, respectively. Print the following:

AC x C0
WA x C1
TLE x C2
RE x C3

Sample Input Copy

6
AC
TLE
AC
AC
WA
TLE

Sample Output Copy

AC x 3
WA x 1
TLE x 2
RE x 0

Source/Category