a = int(eval(input()))

b = [eval(input()) for i in range(a)]

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

for i in c:

  print((i+str(" x ")+str(b.count(i))))
c=open(0).read().count

for s in'AC','WA','TLE','RE':print((s, 'x',c(s)))



a = int(eval(input()))
b = [eval(input()) for i in range(a)]
c = ["AC", "WA", "TLE", "RE"]
for i in c:
    print((i + str(" x ") + str(b.count(i))))

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

-a = int(eval(input())) -b = [eval(input()) for i in range(a)] -c = ["AC", "WA", "TLE", "RE"] -for i in c: -    print((i + str(" x ") + str(b.count(i)))) +c = open(0).read().count +for s in "AC", "WA", "TLE", "RE": +    print((s, "x", c(s)))