n = int(eval(input()))

s = [eval(input()) for _ in range(n)]

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



for r in res:

    print((r, "x", s.count(r)))
s = open(0).read().count

for r in "AC", "WA", "TLE", "RE":

    print((r, "x", s(r)))
n = int(eval(input()))
s = [eval(input()) for _ in range(n)]
res = ["AC", "WA", "TLE", "RE"]
for r in res:
    print((r, "x", s.count(r)))

s = open(0).read().count
for r in "AC", "WA", "TLE", "RE":
    print((r, "x", s(r)))

-n = int(eval(input())) -s = [eval(input()) for _ in range(n)] -res = ["AC", "WA", "TLE", "RE"] -for r in res: -    print((r, "x", s.count(r))) +s = open(0).read().count +for r in "AC", "WA", "TLE", "RE": +    print((r, "x", s(r)))