dic = {'AC':0,'WA':0,'TLE':0,'RE':0}

for i in range(int(eval(input()))):

    dic[eval(input())] += 1

print(f"AC x {dic['AC']}")

print(f"WA x {dic['WA']}")

print(f"TLE x {dic['TLE']}")

print(f"RE x {dic['RE']}")

from collections import Counter

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

c = Counter(lst)

for s in ['AC','WA','TLE','RE']:

    print(f"{s} x {c[s]}")
dic = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0}
for i in range(int(eval(input()))):
    dic[eval(input())] += 1
print(f"AC x {dic['AC']}")
print(f"WA x {dic['WA']}")
print(f"TLE x {dic['TLE']}")
print(f"RE x {dic['RE']}")

from collections import Counter

n, *lst = open(0).read().split()
c = Counter(lst)
for s in ["AC", "WA", "TLE", "RE"]:
    print(f"{s} x {c[s]}")

-dic = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0} -for i in range(int(eval(input()))): -    dic[eval(input())] += 1 -print(f"AC x {dic['AC']}") -print(f"WA x {dic['WA']}") -print(f"TLE x {dic['TLE']}") -print(f"RE x {dic['RE']}") +from collections import Counter + +n, *lst = open(0).read().split() +c = Counter(lst) +for s in ["AC", "WA", "TLE", "RE"]: +    print(f"{s} x {c[s]}")