def B():

    n = int(eval(input()))

    s = []

    for _ in range(n):

        s.append(eval(input()))

    import collections

    c = collections.Counter(s)

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

    for t in ret_l:

        print((t +  " x " + str(c[t])))

B()
def B():

    n, *s = open(0).read().split()

    import collections

    c = collections.Counter(s)

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

    for t in ret_l:

        print((t +  " x " + str(c[t])))

B()
def B():
    n = int(eval(input()))
    s = []
    for _ in range(n):
        s.append(eval(input()))
    import collections

    c = collections.Counter(s)
    ret_l = ["AC", "WA", "TLE", "RE"]
    for t in ret_l:
        print((t + " x " + str(c[t])))


B()

def B():
    n, *s = open(0).read().split()
    import collections

    c = collections.Counter(s)
    ret_l = ["AC", "WA", "TLE", "RE"]
    for t in ret_l:
        print((t + " x " + str(c[t])))


B()

-    n = int(eval(input())) -    s = [] -    for _ in range(n): -        s.append(eval(input())) +    n, *s = open(0).read().split()