peterverebics/CodeNet_Python_118 huggingface dataset:
a=0
b=0
c=0
d=0
N=int(input())
for i in range(N):
  S=input()
  if S=="AC":
    a+=1
  elif S=="WA":
    b+=1
  elif S=="TLE":
    c+=1
  elif S=="RE":
    d+=1
print("AC x "+str(a))
print("WA x "+str(b))
print("TLE x "+str(c))
print("RE x "+str(d))
d = {
    'AC': 0,
    'WA': 0,
    'TLE': 0,
    'RE': 0,
}

for i in range(int(input())):
    d[input()] += 1

for i, v in d.items():
    print(f'{i} x {v}')
N = int(input())
ss = [input() for i in range(N)]

results={'AC':0,'WA':0,'TLE':0,'RE':0}
for s in ss:
    results[s]+=1

for result,count in results.items():
    print(result,'x',count)
n = int(input())
d = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}

for i in range(n):
    st = input()
    d[st] += 1

for k, v in d.items():
    print(k, 'x', v)
N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range (N):
  a = input()
  if a == 'AC':
    AC += 1
  elif a == 'WA':
    WA += 1
  elif a == 'TLE':
    TLE += 1
  elif a == 'RE':
    RE += 1
print('AC','x',AC)
print('WA','x',WA)
print('TLE','x',TLE)
print('RE','x',RE)
n = int(input())
s = [0 for i in range(4)]
for i in range(n):
    t = input()
    if t == "AC":
        s[0] += 1
    elif t == "WA":
        s[1] += 1
    elif t == "TLE":
        s[2] += 1
    elif t == "RE":
        s[3] += 1

s_2 = ["AC","WA","TLE","RE"]
for i in range(4):
    print(s_2[i],"x",s[i])
N = int(input())

AC = []
WA = []
TLE = []
RE = []
for i in range(N):
  inp = input()
  if inp == "AC":
  	AC.append(1)
  elif inp == "WA":
    WA.append(1)
  elif inp == "TLE":
    TLE.append(1)
  elif inp == "RE":
    RE.append(1)
  
  
print ("AC x {}".format(len(AC)))
print ("WA x {}".format(len(WA)))
print ("TLE x {}".format(len(TLE)))
print ("RE x {}".format(len(RE)))
N=int(input())
S=['AC','WA','TLE','RE']

TC=[]
for i in range(N):
    TC.append(input())

for s in S:
    print("{} x {}".format(s,TC.count(s)))
n=int(input())
ac=0
wa=0
tle=0
re=0
for i in range(n):
  s=input()
  if s=="AC":
    ac+=1
  elif s=="WA":
    wa+=1
  elif s=="TLE":
    tle+=1
  elif s=="RE":
    re+=1
print("AC x",ac)
print("WA x",wa)
print("TLE x",tle)
print("RE x",re)
n = int(input())
list1 = []
for i in range(n):
    get = input()
    list1.append(get)
print("AC x {}".format (list1.count("AC")))
print("WA x {}".format (list1.count("WA")))
print("TLE x {}".format (list1.count("TLE")))
print("RE x {}".format (list1.count("RE")))
from collections import defaultdict
N = int(input())
cnter = defaultdict(int)
for i in range(N):
  S = input()
  cnter[S] += 1
for ans in ["AC", "WA", "TLE", "RE"]:
  print("{} x {}".format(ans, cnter[ans]))
N = int(input())
S = []
for i in range(N):
    s = str(input())
    S.append(s)

result = ['AC', 'WA', 'TLE', 'RE']
C = [S.count(r) for r in result]

for (re, c) in zip(result, C):
    print(re + ' x ' + str(c))
N = int(input())

ans = dict()
ans['AC'] = 0
ans['WA'] = 0
ans['TLE'] = 0
ans['RE'] = 0
for i in range(N):
    S = input()
    ans[S] += 1
        
print("AC x", ans['AC'])
print("WA x", ans['WA'])
print("TLE x", ans['TLE'])
print("RE x", ans['RE'])
N = int(input())
A = []
for _ in range(N):
    A.append(input())

print('AC x',A.count('AC'))
print('WA x',A.count('WA'))
print('TLE x',A.count('TLE'))
print('RE x',A.count('RE'))
n = int(input())
k = [input() for i in range(n)]
ac = 0
wa = 0
tle = 0
re = 0

for j in range(n):
  if k[j] == 'AC':
    ac += 1
  elif k[j] == 'WA':
    wa += 1
  elif k[j] == 'TLE':
    tle += 1
  elif k[j] == 'RE':
    re += 1
    
print("AC x",ac)
print("WA x",wa)
print("TLE x",tle)
print("RE x",re)
import sys
import heapq
import math
import fractions
import bisect
import itertools
from collections import Counter
from collections import deque
from operator import itemgetter
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

n=int(input())
a,b,c,d=0,0,0,0
for i in range(n):
    s=input()
    if s=="AC":
        a+=1
    elif s=="WA":
        b+=1
    elif s=="TLE":
        c+=1
    else:
        d+=1
print("AC x",a)
print("WA x",b)
print("TLE x",c)
print("RE x",d)
import sys
a = sys.stdin.readlines()

print("AC x " + str(a.count("AC\n")))
print("WA x " + str(a.count("WA\n")))
print("TLE x " + str(a.count("TLE\n")))
print("RE x " + str(a.count("RE\n")))
S=lambda:input()
I=lambda:int(input())
L=lambda:list(map(int,input().split()))
LS=lambda:list(map(str,input().split()))

n=I()
ac=0
wa=0
tle=0
re=0
for i in range(n):
    s=S()
    if s=='AC':
        ac+=1
    if s=='WA':
        wa+=1
    if s=='TLE':
        tle+=1
    if s=='RE':
        re+=1
print("AC x "+str(ac))
print("WA x "+str(wa))
print("TLE x "+str(tle))
print("RE x "+str(re))
p={'AC':0,'WA':0,'TLE':0,'RE':0}
for _ in range(int(input())):
    
    s=input()
        
    p[s]=p[s]+1
for i in p:
    print("{} x {}".format(i,p[i]))
n = int(input())
ls = [input() for _ in range(n)]

nac = 0
nwa = 0
ntle = 0
nre = 0

for s in ls:
    if s == "AC":
        nac += 1
    elif s == "WA":
        nwa += 1
    elif s == "TLE":
        ntle += 1
    else:
        nre += 1

print(f"AC x {nac}\n\
WA x {nwa}\n\
TLE x {ntle}\n\
RE x {nre}")
import sys
sys.setrecursionlimit(10 ** 8)

def Z(): return int(input())
def ZZ(): return [int(_) for _ in input().split()]

def main():
    AC = WA = TLE = RE = 0
    N = Z()
    for _ in range(N):
        s = input()
        if s == 'AC': AC += 1
        elif s == 'WA': WA += 1
        elif s == 'TLE': TLE += 1
        else: RE += 1
    print('AC x {}'.format(AC))
    print('WA x {}'.format(WA))
    print('TLE x {}'.format(TLE))
    print('RE x {}'.format(RE))

    return

if __name__ == '__main__':
    main()
N = int(input())

result = [input() for _ in range(N)]

C_AC,C_TLE,C_WA,C_RE = [0,0,0,0]

for i in result:
  if i == "AC":
    C_AC += 1
  elif i == "WA":
    C_WA += 1
  elif i == "TLE":
    C_TLE += 1
  elif i == "RE":
    C_RE += 1

print("AC x " + str(C_AC))
print("WA x " + str(C_WA))
print("TLE x " + str(C_TLE))
print("RE x " + str(C_RE))
N = int(input())
S = [input() for i in range(N)]

d = {"AC":0, "WA":0, "TLE":0, "RE":0}
for s in S:
    d[s] += 1

print("AC x " + str(d["AC"]))
print("WA x " + str(d["WA"]))
print("TLE x " + str(d["TLE"]))
print("RE x " + str(d["RE"]))
# -*- coding: utf-8 -*-
N = int(input())
S_list = []
for i in range(N):
    S_list.append(str(input()))

key_list = ["AC", "WA", "TLE", "RE"]
for key in key_list:
    print(key + " x " + str(S_list.count(key)))
N = int(input())
C0, C1, C2, C3 = 0, 0, 0, 0
for i in range(N):
    Si = input()
    if Si == 'AC':
        C0 += 1
 
    elif Si == 'WA':
        C1  += 1
 
    elif Si == 'TLE':
        C2 += 1
 
    else:
        C3 += 1
 
print('AC x ' + str(C0))
print('WA x ' + str(C1))
print('TLE x ' + str(C2))
print('RE x ' + str(C3))
N = int(input())

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

for _ in range(N):
  d[input()] += 1

for key in ['AC', 'WA', 'TLE', 'RE']:
  print('{} x {}'.format(key, d[key]))
N = int(input())
ans = [0]*4
for i in range(N):
    s = input()
    if s == "AC":
        ans[0] += 1
    elif s == "WA":
        ans[1] += 1
    elif s == "TLE":
        ans[2] += 1
    elif s == "RE":
        ans[3] += 1
print("AC x "+ str(ans[0]),"WA x "+ str(ans[1]),"TLE x "+ str(ans[2]),"RE x "+ str(ans[3]),sep = "\n" )
d = {"AC":0,"WA":0,"TLE":0,"RE":0}
N = int(input())

for i in range(N):
    d[input()] += 1

print("AC x {}".format(d["AC"]))
print("WA x {}".format(d["WA"]))
print("TLE x {}".format(d["TLE"]))
print("RE x {}".format(d["RE"]))
import sys
input = sys.stdin.readline


def readstr():
    return input().strip()


def readint():
    return int(input())


def readnums():
    return map(int, input().split())


def readstrs():
    return input().split()


def main():
    N = readint()
    s = [readstr() for _ in range(N)]
    print(f"AC x {s.count('AC')}")
    print(f"WA x {s.count('WA')}")
    print(f"TLE x {s.count('TLE')}")
    print(f"RE x {s.count('RE')}")


if __name__ == "__main__":
    main()
n=int(input())
C0=0
C1=0
C2=0
C3=0
for i in range(n):
    s=input()

    if s=='AC':
       C0+=1
    if s=='WA':
       C1+=1
    if s=='TLE':
       C2+=1
    if s=='RE':
       C3+=1
print('AC x '+str(C0))
print('WA x '+str(C1))
print('TLE x '+str(C2))
print('RE x '+str(C3))
N =int(input())
list ={"AC":0, "WA":0, "TLE":0, "RE":0 }
 
for i in range(N):
  words = input()
  list[words]+=1
 
print("AC x "+str(list["AC"]))
print("WA x "+str(list["WA"]))
print("TLE x "+str(list["TLE"]))
print("RE x "+str(list["RE"]))
n=int(input())
s=[]
ac,wa,tle,re=0,0,0,0
for i in range(n):
    s.append(input())
    if s[-1]=="AC":
        ac+=1
    elif s[-1]=="TLE":
        tle+=1
    elif s[-1]=="WA":
        wa+=1
    else:
        re+=1
print("AC x {}".format(ac))
print("WA x {}".format(wa))
print("TLE x {}".format(tle))
print("RE x {}".format(re))
n = int(input())
a = 0
b = 0
c = 0
d = 0
for i in range(n):
  s = input()
  if s == 'AC':
    a += 1
  elif s == 'WA':
    b += 1
  elif s == 'TLE':
    c += 1
  else:
    d += 1
print('AC' + ' ' + 'x' + ' ' + str(a))
print('WA' + ' ' + 'x' + ' ' + str(b))
print('TLE' + ' ' + 'x' + ' ' + str(c))
print('RE' + ' ' + 'x' + ' ' + str(d))
from collections import Counter
N=int(input())
ll=[]
for i in range(N):
    ll.append(input())
c=Counter(ll)
print("AC x {}".format(c['AC']))
print("WA x {}".format(c['WA']))
print("TLE x {}".format(c['TLE']))
print("RE x {}".format(c['RE']))
n=int(input())

a=0
w=0
t=0
r=0

for i in range(n):
  s=str(input())
  if s=="AC":
    a+=1
  elif s=="WA":
    w+=1
  elif s=="TLE":
    t+=1
  else:
    r+=1


print("AC x",a)
print("WA x",w)
print("TLE x",t)
print("RE x",r)
import sys
input = sys.stdin.readline

N = int(input())

a, b, c, d = 0, 0, 0, 0

for _ in range(N):
    S = input().rstrip()
    if S == "AC": a += 1
    elif S == "WA": b += 1
    elif S == "TLE": c += 1
    else: d += 1

print("AC x", a)
print("WA x", b)
print("TLE x", c)
print("RE x", d)
ac = 0
wa = 0
tle = 0
re = 0
for t in range(int(input())):
    s = input()
    if "AC" in s:
        ac += 1
    elif "WA" in s:
        wa += 1
    elif "TLE" in s:
        tle += 1
    else:
        re += 1
print("AC x ", ac)
print("WA x ", wa)
print("TLE x ", tle)
print("RE x ", re)
n = int(input())
l = [input() for i in range(n)]
reslt = ["AC", "WA", "TLE", "RE"]
for j in reslt:
	print('{0} x {1}'.format(j, l.count(j)))
N = int(input())
C = [input() for i in range(N)]


ACcnt = C.count("AC")
WAcnt = C.count("WA")
TLEcnt = C.count("TLE")
REcnt = C.count("RE")

print('AC x ' + str(ACcnt))
print('WA x ' + str(WAcnt))
print('TLE x ' + str(TLEcnt))
print('RE x ' + str(REcnt))
n=int(input())

s=[]
for _ in range(n):
    
    s_n=input()
    s.append(s_n)

ac=s.count('AC')
wa=s.count('WA')
tle=s.count('TLE')
re=s.count('RE')

print('AC x '+str(ac))
print('WA x '+str(wa))
print('TLE x '+str(tle))
print('RE x '+str(re))
# import time
# t1=time.time()
def LI():return list(map(int,input().split()))
def I(): return int(input())
from collections import deque, Counter, defaultdict
from heapq import heappop, heappush
# from pprint import pprint
# import numpy as np

n=I()
s=[input() for _ in range(n)]
sc=Counter(s)
print("AC x {}".format(sc["AC"]))
print("WA x {}".format(sc["WA"]))
print("TLE x {}".format(sc["TLE"]))
print("RE x {}".format(sc["RE"]))
import collections

def main():
    n = int(input())
    s = []
    for i in range(n):
        s_ = input()
        s.append(s_)
    
    c = collections.Counter(s)
    print("AC x " + str(c["AC"]))
    print("WA x " + str(c["WA"]))
    print("TLE x " + str(c["TLE"]))
    print("RE x " + str(c["RE"]))

if __name__ == "__main__":
    main()
N = int(input())
ac=0
wa=0
tle=0
re=0
s = [input() for i in range(N)]
for i in s:
    if i == 'AC':
        ac+=1
    if i == 'WA':
        wa+=1
    if i == 'TLE':
        tle+=1
    if i == 'RE':
        re+=1
print("AC x ",ac)
print("WA x ",wa)
print("TLE x ",tle)
print("RE x ",re)
#!/usr/bin python3
# -*- coding: utf-8 -*-

def main():
    N = int(input())
    l = ['AC', 'WA', 'TLE', 'RE']
    dic = {key:0 for key in l}
    for _ in range(N):
        dic[input()] += 1
    for key in l:
        print(key + ' x ' + str(dic[key]))

if __name__ == '__main__':
    main()
N = int(input())
S = [input() for i in range(N)]
#S = [list(input().split()) for i in range(N)]

print('AC x ',S.count('AC'))
print('WA x ',S.count('WA'))
print('TLE x ',S.count('TLE'))
print('RE x ',S.count('RE'))
N = int(input())
C = {'AC':0 , 'WA':0, 'TLE':0 , 'RE':0 }

for i in range(N):
  C[input()] += 1

print('AC x', C['AC'] )
print('WA x', C['WA'] )
print('TLE x', C['TLE'] )
print('RE x', C['RE'] )
# -*- coding: utf-8 -*-


def main():
    from collections import Counter

    n = int(input())
    results = Counter([input() for _ in range(n)])

    for status in ['AC', 'WA', 'TLE', 'RE']:
        print(status + ' x ' + str(results[status]))


if __name__ == '__main__':
    main()
n=int(input())
l=[0,0,0,0]
for i in range(n):
  s=input()
  if(s=="AC"):
    l[0]+=1
  elif(s=="WA"):
    l[1]+=1
  elif(s=="TLE"):
    l[2]+=1
  else:
    l[3]+=1

print("AC x",l[0])
print("WA x",l[1])
print("TLE x",l[2])
print("RE x",l[3])
from collections import Counter
n=int(input())
s=[input() for i in range(n)]
ans=["AC","WA","TLE","RE"]
s=Counter(s)
for i in ans:
  print("{} x {}".format(i,s[i]))
from collections import defaultdict

N = int(input())
mem = defaultdict()
mem["AC"] = 0
mem["WA"] = 0
mem["TLE"] = 0
mem["RE"] = 0
for i in range(N):
    inp = input()
    mem[inp] += 1
print("AC x " + str(mem["AC"]))
print("WA x " + str(mem["WA"]))
print("TLE x " + str(mem["TLE"]))
print("RE x " + str(mem["RE"]))
dic={"AC":0, 'WA':0, 'TLE':0, "RE":0}
t = int(input())
for i in range(t):
	dic[input()]+=1
for key,val in dic.items():
	print(key+" x "+str(val))
n = int(input())
s = [input() for i in range(n)]

print("AC x {}".format(s.count("AC")))
print("WA x {}".format(s.count("WA")))
print("TLE x {}".format(s.count("TLE")))
print("RE x {}".format(s.count("RE")))
N = int(input())
Sli = {"AC":0,"WA":0,"TLE":0,"RE":0}

for i in range(N):
  S = input()
  Sli[S] += 1
  
print("AC x "+str(Sli["AC"]))
print("WA x "+str(Sli["WA"]))
print("TLE x "+str(Sli["TLE"]))
print("RE x "+str(Sli["RE"]))
n = int(input())
l = [input() for i in range(n)]
print("AC x", l.count("AC"))
print("WA x", l.count("WA"))
print("TLE x", l.count("TLE"))
print("RE x", l.count("RE"))
from collections import Counter

N=int(input())
S=[input() for _ in range(N)]

C=Counter(S)

for key in ["AC","WA","TLE","RE"]:
    print("{} x {}".format(key,C[key]))
n = int(input())
c0, c1, c2, c3 = [0 for i in range(4)]
for j in range(n):
  judge = input()
  if judge == "AC":
    c0 += 1
  elif judge == "WA":
    c1 += 1
  elif judge == "TLE":
    c2 += 1
  else:
  	c3 += 1

print("AC x " + str(c0))
print("WA x " + str(c1))
print("TLE x " + str(c2))
print("RE x " + str(c3))
N = int(input())

anss = [0]*4

for i in range(N):
    S = input()
    if S == 'AC':
        anss[0]+=1
    if S == 'WA':
        anss[1]+=1
    if S == 'TLE':
        anss[2]+=1
    if S == 'RE':
        anss[3]+=1

print('AC x {}'.format(anss[0]))
print('WA x {}'.format(anss[1]))
print('TLE x {}'.format(anss[2]))
print('RE x {}'.format(anss[3]))
from collections import Counter

n = int(input())
S = [input() for _ in range(n)]
S_cnt = Counter(S)

print('AC x ' + str(S_cnt['AC']))
print('WA x ' + str(S_cnt['WA']))
print('TLE x ' + str(S_cnt['TLE']))
print('RE x ' + str(S_cnt['RE']))
import collections

N = int(input())
judgement = []
for i in range(N):
    judgement.append(input())
c = collections.Counter(judgement)

order = ["AC", "WA", "TLE", "RE"]
for ans in order:
    print(ans + " x " + str(c[ans]))
# Problem B - Judge Status Summary

# input
N = int(input())

# initialization
ac = 0
wa = 0
tle = 0
re = 0

# count
for i in range(N):
    s = input()

    if s=='AC':
        ac += 1
    elif s=='WA':
        wa += 1
    elif s=='TLE':
        tle += 1
    else:
        re += 1

# output
print("AC x " + str(ac))
print("WA x " + str(wa))
print("TLE x " + str(tle))
print("RE x " + str(re))
n = int(input())
count = [0,0,0,0]
for _ in range(n):
    i = input()
    if i=='AC':
        count[0]+=1
    elif i=='WA':
        count[1]+=1
    elif i=='TLE':
        count[2]+=1
    else:
        count[3]+=1
print('AC x',count[0])
print('WA x',count[1])
print('TLE x',count[2])
print('RE x',count[3])
N=int(input())
S=[]
for i in range(N):
    S.append(input())

print('AC x ',S.count('AC'))
print('WA x ',S.count('WA'))
print('TLE x ',S.count('TLE'))
print('RE x ',S.count('RE'))
n=int(input())
dict={"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(n):
    s=input()
    dict[s]+=1
print("AC x "+str(dict["AC"]))
print("WA x "+str(dict["WA"]))
print("TLE x "+str(dict["TLE"]))
print("RE x "+str(dict["RE"]))
di ={"AC":0,"WA":0,"TLE":0,"RE":0}
N = int(input())
for i in range(N):
    s = input()
    di[s] += 1
for key in di:
    print(key+" x "+str(di[key]))
N = int(input())

result = []

for i in range(N):
    result.append(input())

count = [0,0,0,0]

for s in result:
    if s == "AC":
        count[0] += 1
    if s == "WA":
        count[1] += 1
    if s == "TLE":
        count[2] += 1
    if s == "RE":
        count[3] += 1

print("AC x {}".format(count[0]))
print("WA x {}".format(count[1]))
print("TLE x {}".format(count[2]))
print("RE x {}".format(count[3]))
n = int(input())
s = [input() for _ in range(n)]
dic = {"AC": 0, "WA": 0, "TLE": 0, "RE":0}

for v in s:
  dic[v] += 1

print("AC x {}".format(dic["AC"]))
print("WA x {}".format(dic["WA"]))
print("TLE x {}".format(dic["TLE"]))
print("RE x {}".format(dic["RE"]))
from collections import Counter
n=int(input())
a = [input() for i in range(n)]
c = Counter(a)
print("AC x "+str(c["AC"]))
print("WA x "+str(c["WA"]))
print("TLE x "+str(c["TLE"]))
print("RE x "+str(c["RE"]))
from collections import Counter

N,S = int(input()),[]
for _ in range(N):
	S.append(input())
c = Counter(S)

print('AC x ' + str(c['AC']))
print('WA x ' + str(c['WA']))
print('TLE x ' + str(c['TLE']))
print('RE x ' + str(c['RE']))
n = int(input())
s = [''] * n
a = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}

for i in range(n):
    s[i] = input()
    if s[i] == 'AC':
        a['AC'] += 1
    elif s[i] == 'WA':
        a['WA'] += 1
    elif s[i] == 'TLE':
        a['TLE'] += 1
    elif s[i] == 'RE':
        a['RE'] += 1

print('AC x ' + str(a['AC']))
print('WA x ' + str(a['WA']))
print('TLE x ' + str(a['TLE']))
print('RE x ' + str(a['RE']))
N = int(input())
Ss = [str(input()) for x in range(N)]
r = [0]*4
for s in Ss:
  if s == "AC":
    r[0] += 1
  elif s == "WA":
    r[1] += 1
  elif s == "TLE":
    r[2] += 1
  elif s == "RE":
    r[3] += 1
print("AC x " + str(r[0]))
print("WA x " + str(r[1]))
print("TLE x " + str(r[2]))
print("RE x " + str(r[3]))
import sys
input = sys.stdin.readline

n = int(input())

x = [input().rstrip() for i in range(n)]

print('AC x {0}\nWA x {1}\nTLE x {2}\nRE x {3}'.format(x.count('AC'), x.count('WA'), x.count('TLE'), x.count('RE')))
N = int(input())
S = [input() for i in range(N)]
print('AC x', S.count('AC'))
print('WA x', S.count('WA'))
print('TLE x', S.count('TLE'))
print('RE x', S.count('RE'))
N=int(input())
S = ['AC', 'WA', 'TLE', 'RE']
li=[]

for i in range(N):
  jud = input()
  li.append(jud)
a=li.count('AC')
w=li.count('WA')
t=li.count('TLE')
r=li.count('RE')

#print(li)
#print(a)

print('AC x '+str(a))
print('WA x '+str(w))
print('TLE x '+str(t))
print('RE x '+str(r))
N = int(input())
S = [input() for i in range(N)]
S_name = ['AC','WA','TLE','RE']
for i in range(len(S_name)):
    print(S_name[i] ,'x' ,S.count(S_name[i]))
from collections import Counter
from math import sqrt
import math

n = int(input())
a = []
b = ["AC" , "WA" , "TLE" , "RE"]
for i in range(n):
    a.append(input())
c = Counter(a)
for i in b:
    print(i , " x ",  c[i])
#B - Judge status summary

import math
import sys
import itertools
from math import gcd
from math import sqrt
from sys import stdin
def input() : return stdin.readline().rstrip()
def mips():
    return map(int,input().split())
def ii():
    return int(input())
sys.setrecursionlimit(10**9)

N = int(input())
d = dict()
d["AC"] = 0
d["WA"] = 0
d["TLE"] = 0
d["RE"] = 0
for _ in range(N):
    s = input()
    d[s] += 1
for key,val in d.items():
    print(key + ' x ' + str(val))
ls=["AC","TLE","RE","WA"]
n=int(input())
a=b=c=d=0
for i in range(n):
  s=input()
  if s==ls[0]:
    a+=1
  elif s==ls[1]:
    b+=1
  elif s==ls[2]:
    c+=1
  else:
    d+=1
print(ls[0]+" x",a)
print(ls[3]+" x",d)
print(ls[1]+" x",b)
print(ls[2]+" x",c)
d={'AC':0,'WA':0,'TLE':0,'RE':0}
for _ in range(int(input())):
	d[input()]+=1
print('AC x',d['AC'])
print('WA x',d['WA'])
print('TLE x',d['TLE'])
print('RE x',d['RE'])
n = int(input())

list = []

for i in range(n):
    list.append(input())

AC = list.count('AC')
WA = list.count('WA')
TLE = list.count('TLE')
RE = list.count('RE')

print('AC x ' + str(AC))
print('WA x ' + str(WA))
print('TLE x ' + str(TLE))
print('RE x ' + str(RE))
n=int(input())

c0=0
c1=0
c2=0
c3=0
for i in range(n):
  Sn=input()
  if Sn=="AC":
    c0+=1
  elif Sn=="WA":
    c1+=1
  elif Sn=="TLE":
    c2+=1
  elif Sn=="RE":
    c3+=1
 
print("AC x "+(str(c0)))
print("WA x "+(str(c1)))
print("TLE x "+(str(c2)))
print("RE x "+(str(c3)))
#%%
N = int(input())
S = []
for _ in range(N):
    S.append(input())

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

for i in S:
    if i in dic:
        dic[i] += 1
    else:
        dic[i] = 1

for key, value in dic.items():
    print("{} x {}".format(key, value))
#!/usr/bin/env python3
from collections import Counter
n = int(input())
s = [input() for _ in range(n)]
p = Counter(s)
for i in ['AC', 'WA', 'TLE', 'RE']:
    print(i + ' x ' + str(p[i]))
n = int(input())
a = 0
w = 0
t = 0
r = 0
for i in range(n):
  s = input()
  if s == 'AC':
    a+=1
  elif s =='WA':
    w +=1
  elif s =='TLE':
    t +=1
  else:
    r+=1
print('AC x '+str(a))
print('WA x '+str(w))
print('TLE x '+str(t))
print('RE x '+str(r))
N = int(input())
Si = a = [input() for i in range(N)]
print("AC x " + str(Si.count("AC")))
print("WA x " + str(Si.count("WA")))
print("TLE x " + str(Si.count("TLE")))
print("RE x " + str(Si.count("RE")))
ans = {'AC':0,'WA':0,'TLE':0,'RE':0}
for _  in range(int(input())):
  ans[input()] += 1
for k in ans:
  print("%s x %d"%(k,ans[k]))
t=int(input())
d=dict()
d["AC"]=0
d["WA"]=0
d["TLE"]=0
d["RE"]=0
for i in range(t):
  a=input()
  d[a]=d[a]+1
print("AC","x",d["AC"])  
print("WA","x",d["WA"])  
print("TLE","x",d["TLE"])  
print("RE","x",d["RE"])
N = int(input())
D = [input() for j in range(N)]
a = D.count("AC")
w = D.count("WA")
t = D.count("TLE")
r = D.count("RE")
print("AC x "+str(a))
print("WA x "+str(w))
print("TLE x "+str(t))
print("RE x "+str(r))
N = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(N):
    S = input()
    if S == "AC":
        ac+=1
    elif S == "WA":
        wa += 1
    elif S== "TLE":
        tle += 1
    elif S == "RE":
        re += 1
print(f'AC x {ac}')
print(f'WA x {wa}')
print(f'TLE x {tle}' )
print(f'RE x {re}')
n = int(input())
c = [0]*4
for i in range(n):
    s = input()
    if s == "AC":
        c[0] += 1
    elif s == "WA":
        c[1] += 1
    elif s == "TLE":
        c[2] += 1
    elif s == "RE":
        c[3] += 1

print("AC x ", c[0])
print("WA x ", c[1])
print("TLE x ", c[2])
print("RE x ", c[3], end='')
def main():
    N=int(input())
    ans={"AC":0,"WA":0,"TLE":0,"RE":0}
    for _ in range(N):
        S=input()
        ans[S]+=1
    for i in ans.keys():
        print(i,"x",ans[i])


main()
import collections
N = int(input())
S = []
for _ in range(N):
  S.append(input())

counter = collections.Counter(S)
AC = counter['AC']
WA = counter['WA']
TLE = counter['TLE']
RE = counter['RE']

print("AC x {}".format(AC))
print("WA x {}".format(WA))
print("TLE x {}".format(TLE))
print("RE x {}".format(RE))
n = int(input())
A = 0
W = 0
T = 0
R = 0
for i in range(n):
    a = input()
    if a == "AC":
        A += 1
    if a =="WA":
        W += 1
    if a == "TLE":
        T += 1
    if a == "RE":
        R += 1

print("AC x " + str(A))
print("WA x " + str(W))
print("TLE x " + str(T))
print("RE x " + str(R))
N = int(input())
S = (input() for i in range(N))
c0, c1, c2, c3 = 0, 0, 0, 0
for i in S:
    if i == 'AC':
        c0 += 1 
    if i == 'WA':
        c1 += 1
    if i == 'TLE':
        c2 += 1
    if i == 'RE':
        c3 += 1
print('AC','x',c0)
print('WA','x',c1)
print('TLE','x',c2)
print('RE','x',c3)