N = int(eval(input()))

S = [eval(input()) for x in range(N)]



dic = {

    "AC":0,

    "WA":0,

    "TLE":0,

    "RE":0

}



ac = sum(1 for x in S if x == "AC")

wa = sum(1 for x in S if x == "WA")

tl = sum(1 for x in S if x == "TLE")

re = sum(1 for x in S if x == "RE")



print(("AC x " + str(ac)))

print(("WA x " + str(wa)))

print(("TLE x " + str(tl)))

print(("RE x " + str(re)))
import collections



N = int(eval(input()))

S = [eval(input()) for x in range(N)]



C = collections.Counter(S)

keys = ["AC","WA","TLE","RE"]

for key in keys:

    print((key + " x " + str(C[key])))
N = int(eval(input()))
S = [eval(input()) for x in range(N)]
dic = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0}
ac = sum(1 for x in S if x == "AC")
wa = sum(1 for x in S if x == "WA")
tl = sum(1 for x in S if x == "TLE")
re = sum(1 for x in S if x == "RE")
print(("AC x " + str(ac)))
print(("WA x " + str(wa)))
print(("TLE x " + str(tl)))
print(("RE x " + str(re)))

import collections

N = int(eval(input()))
S = [eval(input()) for x in range(N)]
C = collections.Counter(S)
keys = ["AC", "WA", "TLE", "RE"]
for key in keys:
    print((key + " x " + str(C[key])))

+import collections + -dic = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0} -ac = sum(1 for x in S if x == "AC") -wa = sum(1 for x in S if x == "WA") -tl = sum(1 for x in S if x == "TLE") -re = sum(1 for x in S if x == "RE") -print(("AC x " + str(ac))) -print(("WA x " + str(wa))) -print(("TLE x " + str(tl))) -print(("RE x " + str(re))) +C = collections.Counter(S) +keys = ["AC", "WA", "TLE", "RE"] +for key in keys: +    print((key + " x " + str(C[key])))