n = int(eval(input()))

dic = dict()

dic["AC"] = 0

dic["WA"] = 0

dic["TLE"] = 0

dic["RE"] = 0



for i in range(n):

    x = eval(input())

    dic[x] += 1

print(("AC x", dic["AC"]))

print(("WA x", dic["WA"]))

print(("TLE x", dic["TLE"]))

print(("RE x", dic["RE"]))
from collections import Counter

import sys

input = sys.stdin.read

def main():

    n = int(sys.stdin.readline())

    A = input().split()

    C = Counter(A)

    for i in ["AC", "WA", "TLE", "RE"]:

        n = C[i]

        print(("{} x {}".format(i, n)))

if __name__ == '__main__':

    main()

n = int(eval(input()))
dic = dict()
dic["AC"] = 0
dic["WA"] = 0
dic["TLE"] = 0
dic["RE"] = 0
for i in range(n):
    x = eval(input())
    dic[x] += 1
print(("AC x", dic["AC"]))
print(("WA x", dic["WA"]))
print(("TLE x", dic["TLE"]))
print(("RE x", dic["RE"]))

from collections import Counter
import sys

input = sys.stdin.read


def main():
    n = int(sys.stdin.readline())
    A = input().split()
    C = Counter(A)
    for i in ["AC", "WA", "TLE", "RE"]:
        n = C[i]
        print(("{} x {}".format(i, n)))


if __name__ == "__main__":
    main()

-n = int(eval(input())) -dic = dict() -dic["AC"] = 0 -dic["WA"] = 0 -dic["TLE"] = 0 -dic["RE"] = 0 -for i in range(n): -    x = eval(input()) -    dic[x] += 1 -print(("AC x", dic["AC"])) -print(("WA x", dic["WA"])) -print(("TLE x", dic["TLE"])) -print(("RE x", dic["RE"])) +from collections import Counter +import sys + +input = sys.stdin.read + + +def main(): +    n = int(sys.stdin.readline()) +    A = input().split() +    C = Counter(A) +    for i in ["AC", "WA", "TLE", "RE"]: +        n = C[i] +        print(("{} x {}".format(i, n))) + + +if __name__ == "__main__": +    main()