Takahashi is participating in a programming contest called AXC002, and he has just submitted his code to Problem A.
The problem has N test cases.
For each test case i (1\leq i \leq N), you are given a string S_i representing the verdict for that test case. Find the numbers of test cases for which the verdict is AC, WA, TLE, and RE, respectively.
See the Output section for the output format.

-----Constraints-----
 - 1 \leq N \leq 10^5
 - S_i is AC, WA, TLE, or RE.

-----Input-----
Input is given from Standard Input in the following format:
N
S_1
\vdots
S_N

-----Output-----
Let C_0, C_1, C_2, and C_3 be the numbers of test cases for which the verdict is AC, WA, TLE, and RE, respectively. Print the following:
AC x C_0
WA x C_1
TLE x C_2
RE x C_3

-----Sample Input-----
6
AC
TLE
AC
AC
WA
TLE

-----Sample Output-----
AC x 3
WA x 1
TLE x 2
RE x 0

We have 3, 1, 2, and 0 test case(s) for which the verdict is AC, WA, TLE, and RE, respectively.
[{"code": "c = int(input())\n\nr = [\"AC\", \"WA\", \"TLE\", \"RE\"]\na = { i:0 for i in r}\n\nfor i in range(c):\n    s = input()\n    a [s] += 1\n\nfor rr in r:\n    print(rr + \" x \" + str(a[rr]))", "passed": true, "time": 0.18, "memory": 14288.0, "status": "done"}, {"code": "n = int(input())\nl = []\nfor i in range(n):\n  l.append(input().rstrip())\n  \nprint('AC x ' + str(l.count('AC')))\nprint('WA x ' + str(l.count('WA')))\nprint('TLE x ' + str(l.count('TLE')))\nprint('RE x ' + str(l.count('RE')))", "passed": true, "time": 0.15, "memory": 14280.0, "status": "done"}, {"code": "n = int(input())\nl = []\nfor i in range(n):\n    l.append(str(input()))\nprint((\"AC x \"+str(l.count('AC'))))\nprint((\"WA x \"+str(l.count('WA'))))\nprint((\"TLE x \"+str(l.count('TLE'))))\nprint((\"RE x \"+str(l.count('RE'))))\n", "passed": true, "time": 0.27, "memory": 14328.0, "status": "done"}, {"code": "\nn = int(input())\nAC,WA,TLE,RE = 0,0,0,0\n\nfor x in range(n):\n    s = input()\n    if s == 'AC':\n        AC = AC + 1\n    elif s == 'WA':\n        WA = WA + 1\n    elif s == 'TLE':\n        TLE = TLE + 1\n    elif s == 'RE':\n        RE = RE + 1\n\nprint(('AC x ' + str(AC)))\nprint(('WA x ' + str(WA)))\nprint(('TLE x ' + str(TLE)))\nprint(('RE x ' + str(RE)))\n\n", "passed": true, "time": 0.91, "memory": 14080.0, "status": "done"}, {"code": "n = int(input())\njudge = ['AC', 'WA', 'TLE', 'RE']\ncnt = [0] * 4\nfor _ in range(n):\n    s = input()\n    cnt[judge.index(s)] += 1\nfor i in range(4):\n    print(judge[i], \"x\", cnt[i])", "passed": true, "time": 0.15, "memory": 14064.0, "status": "done"}, {"code": "n = int(input())\nac = wa = tle = re = 0\nfor i in range(n):\n    st = input()\n    if st == 'AC':\n        ac += 1\n    elif st == 'WA':\n        wa += 1\n    elif st == 'TLE':\n        tle += 1\n    else:\n        re += 1\nprint(f'AC x {ac}\\nWA x {wa}\\nTLE x {tle}\\nRE x {re}')\n", "passed": true, "time": 1.76, "memory": 14256.0, "status": "done"}, {"code": "N = int(input())\n\nC0 = 0\nC1 = 0\nC2 = 0\nC3 = 0\n\nfor i in range(N):\n    Si = input()\n    if Si == 'AC':\n        C0 += 1\n    elif Si == 'WA':\n        C1 += 1\n    elif Si == 'TLE':\n        C2 += 1\n    elif Si == 'RE':\n        C3 += 1\nprint('AC x ' + str(C0))\nprint('WA x ' + str(C1))\nprint('TLE x ' + str(C2))\nprint('RE x ' + str(C3))", "passed": true, "time": 0.36, "memory": 14156.0, "status": "done"}, {"code": "N = int(input())\n\nd = {\"AC\":0,\"WA\":0,\"TLE\":0,\"RE\":0}\nfor _ in range(N):\n  d[input()]+=1\nfor i,v in d.items():\n  print(f\"{i} x {v}\")", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "import sys\n\n\ninputs = []\nfor input in sys.stdin:\n    inputs.append(input.replace(\"\\n\", \"\"))\n\nAC = 0\nWA = 0\nTLE = 0\nRE = 0\n\nfor index, input in enumerate(inputs, 1):\n    if input == \"AC\":\n        AC += 1\n    if input == \"WA\":\n        WA += 1\n    if input == \"TLE\":\n        TLE += 1\n    if input == \"RE\":\n        RE += 1\n\nprint((\"AC x \" + str(AC) + \"\\nWA x \" + str(WA) + \"\\nTLE x \" + str(TLE) + \"\\nRE x \" + str(RE)))\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "N = int(input())\nD = {\"AC\": 0, \"WA\": 0, \"TLE\": 0, \"RE\": 0}\nfor i in range(N):\n    D[input()] += 1\nfor x, y in list(D.items()):\n    print((\"{0} x {1}\".format(x, y)))\n", "passed": true, "time": 0.27, "memory": 14180.0, "status": "done"}, {"code": "N = int(input())\nAC = 0\nWA = 0\nTLE = 0\nRE = 0\nfor i in range(N):\n  s = input()\n  if(s=='AC'):\n    AC+=1\n  elif(s=='WA'):\n    WA+=1\n  elif(s=='TLE'):\n    TLE+=1\n  elif(s=='RE'):\n    RE+=1\n\nprint('AC x '+str(AC))\nprint('WA x '+str(WA))\nprint('TLE x '+str(TLE))\nprint('RE x '+str(RE))", "passed": true, "time": 0.19, "memory": 14316.0, "status": "done"}, {"code": "N = int(input())\nC0 = C1 = C2 = C3 = 0\n\nfor i in range(N):\n    S = str(input())\n    if S == \"AC\":\n        C0 += 1\n    if S == \"WA\":\n        C1 += 1\n    if S == \"TLE\":\n        C2 += 1\n    if S == \"RE\":\n        C3 += 1\n\nC0 = str(C0)\nC1 = str(C1)\nC2 = str(C2)\nC3 = str(C3)\n\nprint(\"AC x \" + C0)\nprint(\"WA x \" + C1)\nprint(\"TLE x \" + C2)\nprint(\"RE x \" + C3)", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "N = int(input())\nS = [input() for i in range(N)]\n\nnac = len([s for s in S if s == \"AC\"])\nnwa = len([s for s in S if s == \"WA\"])\nntle = len([s for s in S if s == \"TLE\"])\nnre = len([s for s in S if s == \"RE\"])\n\nprint((\"AC x \" + str(nac)))\nprint((\"WA x \" + str(nwa)))\nprint((\"TLE x \" + str(ntle)))\nprint((\"RE x \" + str(nre)))\n", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "dic = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}\nN = int(input())\nfor i in range(N):\n  dic[input()] += 1\nfor i in dic:\n  print(i, 'x', dic[i])", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "N = int(input())\nS = ['' for i in range(N)]\nfor i in range(N):\n  S[i] = str(input())\n\nitem = [0, 0, 0, 0]\nrslt = ['AC', 'WA', 'TLE', 'RE']\nfor i in range(N):\n  if S[i] == rslt[0]:\n    item[0] += 1\n  elif S[i] == rslt[1]:\n    item[1] += 1\n  elif S[i] == rslt[2]:\n    item[2] += 1\n  else:\n    item[3] += 1\n\nfor i in range(4):\n  print(rslt[i], 'x', item[i])", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "N = int(input())\nresult = [\"AC\",\"WA\",\"TLE\",\"RE\"]\nS = [input() for i in range(N)]\n\nfor i in result:\n    print(i,\"x\",S.count(i))", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "n = int(input())\nd = {\"AC\": 0, \"WA\": 0, \"TLE\": 0, \"RE\": 0}\nfor i in range(n):\n  s = input()\n  d[s] += 1\nprint(\"AC x\", d[\"AC\"])\nprint(\"WA x\", d[\"WA\"])\nprint(\"TLE x\", d[\"TLE\"])\nprint(\"RE x\", d[\"RE\"])", "passed": true, "time": 0.15, "memory": 14116.0, "status": "done"}, {"code": "n = int(input())\njudge_list = [input() for i in range(n)]\n\nac_n = judge_list.count('AC')\ntle_n = judge_list.count('TLE')\nwa_n = judge_list.count('WA')\nre_n = judge_list.count('RE')\n\nprint(f'AC x {ac_n}')\nprint(f'WA x {wa_n}')\nprint(f'TLE x {tle_n}')\nprint(f'RE x {re_n}')\n", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "N = int(input())\nS = [input() for i in range(N)]\n\nprint(\"AC x\",S.count(\"AC\"))\nprint(\"WA x\",S.count(\"WA\"))\nprint(\"TLE x\",S.count(\"TLE\"))\nprint(\"RE x\",S.count(\"RE\"))", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "N = int(input())\nresult = []\nfor i in range(N):\n    r = input()\n    result.append(r)\nAC = 0\nWA = 0\nTLE = 0\nRE = 0\nfor i in range(N):\n    if result[i] == 'AC':\n        AC += 1\n    if result[i] == 'WA':\n        WA += 1\n    if result[i] == 'TLE':\n        TLE += 1\n    if result[i] == 'RE':\n        RE += 1\nprint('AC x', AC)\nprint('WA x', WA)\nprint('TLE x', TLE)\nprint('RE x', RE)", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "import collections as cs\nc=cs.Counter([input() for i in range(int(input()))])\nprint(f'AC x {c[\"AC\"]}')\nprint(f'WA x {c[\"WA\"]}')\nprint(f'TLE x {c[\"TLE\"]}')\nprint(f'RE x {c[\"RE\"]}')", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "n = int(input())\n\nac = 0\nwa = 0\ntle = 0\nre = 0\n\nfor i in range(n):\n    result = input()\n    if result == \"AC\":\n        ac = ac + 1\n    elif result == \"WA\":\n        wa = wa + 1\n    elif result == \"TLE\":\n        tle = tle + 1\n    elif result == \"RE\":\n        re = re + 1\n\nprint(\"AC x \" + str(ac))\nprint(\"WA x \" + str(wa))\nprint(\"TLE x \" + str(tle))\nprint(\"RE x \" + str(re))", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "a,w,t,r = 0,0,0,0\nfor _ in range(int(input())):\n  s = input()\n  if(s == \"AC\"):\n    a += 1\n  elif(s == \"WA\"):\n      w += 1\n  elif(s == \"TLE\"):\n      t += 1\n  else:\n      r += 1\nprint(\"AC x\",a)\nprint(\"WA x\",w)\nprint(\"TLE x\",t)\nprint(\"RE x\",r)", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "import collections\n\nn = int(input())\nlist = []\nfor i in range(n):\n  x = input()\n  list.append(x)\n  \nc = collections.Counter(list)\n\nprint(\"AC x {}\".format(c['AC']))\nprint(\"WA x {}\".format(c['WA']))\nprint(\"TLE x {}\".format(c['TLE']))\nprint(\"RE x {}\".format(c['RE']))", "passed": true, "time": 0.42, "memory": 14052.0, "status": "done"}, {"code": "n = int(input())\n\ns = [input() for i in range(n)]\n\nnumAC = 0\nnumWA = 0\nnumTLE = 0\nnumRE = 0\n\nfor i in range(len(s)):\n    if s[i] == \"AC\":\n        numAC += 1\n    elif s[i] == \"WA\":\n        numWA += 1\n    elif s[i] == \"TLE\":\n        numTLE += 1\n    elif s[i] == \"RE\":\n        numRE += 1\n    else:\n        continue\nprint(\"AC x {}\\nWA x {}\\nTLE x {}\\nRE x {}\".format(numAC,numWA,numTLE,numRE))", "passed": true, "time": 0.15, "memory": 14188.0, "status": "done"}, {"code": "from collections import defaultdict\nkero = ['AC', 'WA', 'TLE', 'RE']\n\ntanuki = defaultdict(int)\nn = int(input())\ns = [input() for i in range(n)]\nfor res in s:\n    tanuki[res] += 1\n\nfor k in kero:\n    print(f'{k} x {tanuki[k]}')", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "n = int(input())\nli = [input() for i in range(n)]\nac = 0\nwa = 0\ntle = 0\nre = 0\nfor i in li:\n    if i == 'AC':\n        ac += 1\n    elif i == 'WA':\n        wa += 1\n    elif i == 'TLE':\n        tle += 1\n    elif i == 'RE':\n        re += 1\nprint('AC x',ac)\nprint('WA x',wa)\nprint('TLE x',tle)\nprint('RE x',re)", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "N = int(input())\nS = [input() for i in range(N)]\n   \nprint(\"AC x\",S.count(\"AC\"))\nprint(\"WA x\",S.count(\"WA\"))\nprint(\"TLE x\",S.count(\"TLE\"))\nprint(\"RE x\",S.count(\"RE\"))", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "def main():\n    n = int(input())\n    \n    s = [input().rstrip('\\r') for i in range(n)]\n    li = [\"AC\", \"WA\", \"TLE\", \"RE\"]\n    cnt = 0\n    \n    for i in range(len(li)):\n        for j in s:\n            if li[i] == j:\n                cnt += 1\n        print(li[i] + \" x \" + str(cnt))\n        cnt = 0\n    \n    \ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "count = int(input())\nlists = []\n\nfor i in range(count):\n  new = input()\n  lists.append(new)\n\nac_count = lists.count('AC')\nwa_count = lists.count('WA')\ntle_count = lists.count('TLE')\nre_count = lists.count('RE')\n\nprint((\"AC x \" + str(ac_count)))\nprint((\"WA x \" + str(wa_count)))\nprint((\"TLE x \" + str(tle_count)))\nprint((\"RE x \" + str(re_count)))\n\n", "passed": true, "time": 0.15, "memory": 14248.0, "status": "done"}, {"code": "import collections\nN = int(input())\na = [input() for i in range(N)]\nprint(\"AC x \"+str(a.count(\"AC\")))\nprint(\"WA x \"+str(a.count(\"WA\")))\nprint(\"TLE x \"+str(a.count(\"TLE\")))\nprint(\"RE x \"+str(a.count(\"RE\")))", "passed": true, "time": 0.38, "memory": 14160.0, "status": "done"}, {"code": "n = int(input())\ns = [input() for i in range(n)]\n\nac, wa, tle, re = 0, 0, 0, 0\n\nfor s_e in s:\n    if s_e == \"AC\":\n        ac += 1\n    elif s_e == \"WA\":\n        wa += 1\n    elif s_e == \"TLE\":\n        tle += 1\n    elif s_e == \"RE\":\n        re += 1\n\nprint(f\"AC x {ac}\")\nprint(f\"WA x {wa}\")\nprint(f\"TLE x {tle}\")\nprint(f\"RE x {re}\")\n", "passed": true, "time": 0.23, "memory": 14296.0, "status": "done"}, {"code": "count = {\"AC\":0,\"WA\":0, \"TLE\":0, \"RE\":0}\nfor i in range(int(input())):\n    x = str(input())\n    if x in count:\n        count[x] += 1\n\nprint(\"AC x \"  +  str(count[\"AC\"]))\nprint(\"WA x \"  +  str(count[\"WA\"]))\nprint(\"TLE x \" + str(count[\"TLE\"]))\nprint(\"RE x \"  +  str(count[\"RE\"]))", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "res = []\n\nn = int(input())\n\nfor i in range(n):\n    r = input()\n    res.append(r)\n\nac = res.count(\"AC\")\nwa = res.count(\"WA\")\ntle = res.count(\"TLE\")\nre = res.count(\"RE\")\n\nprint(\"AC x \"+str(ac))\nprint(\"WA x \"+str(wa))\nprint(\"TLE x \"+str(tle))\nprint(\"RE x \"+str(re))", "passed": true, "time": 0.3, "memory": 14332.0, "status": "done"}, {"code": "import collections\nn = int(input())\nres = [input() for i in range(n)]\na = collections.Counter(res)\n\nprint('{} x {}'.format('AC', a['AC']))\nprint('{} x {}'.format('WA', a['WA']))\nprint('{} x {}'.format('TLE', a['TLE']))\nprint('{} x {}'.format('RE', a['RE']))", "passed": true, "time": 0.35, "memory": 14048.0, "status": "done"}, {"code": "N=int(input())\nac=0\nwa=0\ntle=0\nre=0\nfor _ in range(N):\n  s=input()\n  if 'AC'==s:\n     ac+=1\n  elif 'WA'==s:\n    wa+=1\n  elif 'TLE'==s:\n    tle+=1\n  elif 'RE'==s:\n    re+=1\nprint('AC','x',ac)\nprint('WA','x',wa)\nprint('TLE','x',tle)\nprint('RE','x',re)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "ac = 0\nwa = 0\ntle = 0\nre = 0\nfor i in range(int(input())):\n    word = input()\n    if word == \"AC\":\n        ac += 1\n    elif word == \"WA\":\n        wa += 1\n    elif word == \"TLE\":\n        tle += 1\n    elif word == \"RE\":\n        re += 1\n        \nprint(\"AC x \" + str(ac))\nprint(\"WA x \" + str(wa))\nprint(\"TLE x \" + str(tle))\nprint(\"RE x \" + str(re))", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "N = int(input())\nc0, c1, c2, c3 = 0, 0, 0, 0\nfor i in range(N):\n    r = input()\n    if r == 'AC':\n        c0 += 1\n    elif r == 'WA':\n        c1 += 1\n    elif r == 'TLE':\n        c2 += 1\n    else:\n        c3 += 1\nprint('AC x ' + str(c0))\nprint('WA x ' + str(c1))\nprint('TLE x ' + str(c2))\nprint('RE x ' + str(c3))", "passed": true, "time": 0.25, "memory": 14188.0, "status": "done"}, {"code": "n = int(input())\ns = [input() for i in range(n)]\nresults = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}\nfor res in s:\n    results[res] += 1\nfor r, num in results.items():\n    print(f'{r} x {num}')", "passed": true, "time": 0.25, "memory": 14012.0, "status": "done"}, {"code": "# coding: utf-8\n# Your code here!\n\nn = int(input())\n\nac = 0\nwa = 0\ntle = 0\nre = 0\n\nfor i in range(n):\n    s = input()\n    if s ==\"AC\":\n        ac += 1\n    elif s ==\"WA\":\n        wa += 1\n    elif s ==\"TLE\":\n        tle += 1\n    elif s ==\"RE\":\n        re += 1\n    \nprint(\"AC x \" + str(ac))\nprint(\"WA x \" + str(wa))\nprint(\"TLE x \" + str(tle))\nprint(\"RE x \" + str(re))", "passed": true, "time": 0.16, "memory": 14260.0, "status": "done"}, {"code": "N = int(input())\nac = 0\nwa = 0\ntle = 0\nre = 0\nfor i in range(N):\n  s = str(input())\n  if s == 'AC':\n    ac += 1\n  elif s == 'WA':\n    wa += 1\n  elif s == 'TLE':\n    tle += 1\n  elif s =='RE':\n    re += 1\nprint('AC x',ac)\nprint('WA x',wa)\nprint('TLE x',tle)\nprint('RE x',re)", "passed": true, "time": 0.22, "memory": 14344.0, "status": "done"}, {"code": "N = int(input())\nD = {\"AC\": 0, \"WA\": 0, \"TLE\": 0, \"RE\": 0}\nfor i in range(N):\n    D[input()] += 1\nfor x, y in list(D.items()):\n    print((\"{0} x {1}\".format(x, y)))\n\n", "passed": true, "time": 0.3, "memory": 14212.0, "status": "done"}, {"code": "n=int(input())\nacc=0\nwac=0\ntlec=0\nrec=0\nfor i in range(n):\n    s = input()\n    if(s==\"AC\"):\n        acc+=1\n    elif(s==\"WA\"):\n        wac+=1\n    elif(s==\"TLE\"):\n        tlec+=1\n    elif(s==\"RE\"):\n        rec+=1\nprint(\"AC x %d\" %(acc))\nprint(\"WA x %d\" %(wac))\nprint(\"TLE x %d\" %(tlec))\nprint(\"RE x %d\" %(rec))", "passed": true, "time": 0.22, "memory": 14208.0, "status": "done"}, {"code": "N = int(input())\nD = {\"AC\":0,\"WA\":0,\"TLE\":0,\"RE\":0}\nfor i in range(N):\n  D[input()]+=1\nfor x,y in D.items():\n  print(\"{0} x {1}\".format(x,y) )", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "N=int(input())\n\nitem={\"AC\":0,\"WA\":0,\"TLE\":0,\"RE\":0}\n\nfor n in range(N):\n    S=input()\n\n    if S==\"AC\":\n        item[\"AC\"]+=1\n    elif S==\"WA\":\n        item[\"WA\"]+=1\n    elif S==\"TLE\":\n        item[\"TLE\"]+=1\n    else:\n        item[\"RE\"]+=1\n\nprint(\"AC x\",end=\" \")\nprint(item[\"AC\"])\n\nprint(\"WA x\",end=\" \")\nprint(item[\"WA\"])\n\nprint(\"TLE x\",end=\" \")\nprint(item[\"TLE\"])\n\nprint(\"RE x\",end=\" \")\nprint(item[\"RE\"])\n", "passed": true, "time": 0.14, "memory": 14348.0, "status": "done"}, {"code": "N = int(input())\nstring = [\"AC\", \"WA\", \"TLE\", \"RE\"]\ncount = [0] * 4\nfor i in range(N):\n    s = input()\n    if s == \"AC\":\n        count[0] = count[0] + 1\n    elif s == \"WA\":\n        count[1] = count[1] + 1\n    elif s == \"TLE\":\n        count[2] = count[2] + 1\n    else:\n        count[3] = count[3] + 1\nfor j in range(len(count)):\n    print(string[j] + \" x \" + str(count[j]))", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "n = int(input())\nac=0\nwa=0\ntle=0\nre=0\nfor i in range(n):\n  s=input()\n  if(s == 'AC'):\n      ac += 1\n  elif(s == 'WA'):\n      wa += 1\n  elif(s == 'TLE'):\n      tle += 1\n  else:\n      re += 1\nprint('AC x {}'.format(ac))\nprint('WA x {}'.format(wa))\nprint('TLE x {}'.format(tle))\nprint('RE x {}'.format(re))", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "n=int(input())\na=[0]*4\nb=[\"AC\",\"WA\",\"TLE\",\"RE\"]\nfor i in range(n):\n    s=input()\n    for j in range(4):\n        if s == b[j]:\n            a[j]+=1\nfor i in range(4):\n    print(b[i]+\" x \"+str(a[i]))", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "N = int(input())\nj = [input() for i in range(N)]\nimport collections\nc = collections.Counter(j)\ncs = c['AC']\nca = c['WA']\ncb = c['TLE']\ncc = c['RE']\nprint(f'AC x {cs}')\nprint(f'WA x {ca}')\nprint(f'TLE x {cb}')\nprint(f'RE x {cc}')\n", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "n = int(input())\ns = [input() for _ in range(n)]\nac = s.count(\"AC\")\nwa = s.count(\"WA\")\ntle = s.count(\"TLE\")\nre = s.count(\"RE\")\n\nprint(f\"AC x {ac}\")\nprint(f\"WA x {wa}\")\nprint(f\"TLE x {tle}\")\nprint(f\"RE x {re}\")", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "n = int(input())\nac, wa, tle, re = 0, 0, 0, 0;\n\nfor i in range(n):\n    s = input()\n    if s == 'AC':\n        ac += 1\n    elif s == 'WA':\n        wa += 1\n    elif s == 'TLE':\n        tle += 1\n    else:\n        re += 1\n\nprint('AC', 'x', ac)\nprint('WA', 'x', wa)\nprint('TLE', 'x', tle)\nprint('RE', 'x', re)", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "\nn = int(input())\nres = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}\n\nfor i in range(n):\n    res[input()] +=1\n\nfor k in res:\n    print(('{} x {}'.format(k, res[k])))\n", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "n = int(input())\nac = 0\nwa = 0\ntle = 0\nre = 0\nfor i in range(n):\n  s = input()\n  if s == \"AC\":\n    ac += 1\n  elif s == \"WA\":\n    wa += 1\n  elif s == \"TLE\":\n    tle += 1\n  else:\n    re += 1\nprint(\"AC\",\"x\",ac)\nprint(\"WA\",\"x\",wa)\nprint(\"TLE\",\"x\",tle)\nprint(\"RE\",\"x\",re)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "n = int(input())\n\nac = 0\nwa = 0\ntle = 0\nre = 0\n\nfor i in range(n):\n  s = input()\n  if s == \"AC\":\n    ac += 1\n  elif s == \"WA\":\n    wa += 1\n  elif s == \"TLE\":\n    tle += 1\n  elif s == \"RE\":\n    re += 1\n\nprint((\"AC x {}\".format(str(ac))))\nprint((\"WA x {}\".format(str(wa))))\nprint((\"TLE x {}\".format(str(tle))))\nprint((\"RE x {}\".format(str(re))))\n\n", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "N = int(input())\n\nS = []\n\nc0 = 0\nc1 = 0\nc2 = 0\nc3 = 0\n    \nfor i in range(N):\n    S.append(input())\n    \n    if S[i] == \"AC\" :\n        c0 += 1\n    elif S[i] == \"WA\" :\n        c1 += 1\n    elif S[i] == \"TLE\" :\n        c2 += 1\n    elif S[i] == \"RE\" :\n        c3 += 1\n    \nprint(\"AC x \" + str(c0))\nprint(\"WA x \" + str(c1))\nprint(\"TLE x \" + str(c2))\nprint(\"RE x \" + str(c3))", "passed": true, "time": 0.15, "memory": 14208.0, "status": "done"}, {"code": "N = int(input().split()[0])\na = [0,0,0,0]\nfor i in range(N):\n    b=input().split()[0]\n    if(b == 'AC'):\n        a[0]+=1\n    elif(b == 'WA'):\n        a[1]+=1\n    elif(b == 'TLE'):\n        a[2]+=1\n    elif(b == 'RE'):\n        a[3]+=1\nprint((\"AC x {0}\\nWA x {1}\\nTLE x {2}\\nRE x {3}\".format(a[0],a[1],a[2],a[3])))\n", "passed": true, "time": 0.96, "memory": 14220.0, "status": "done"}, {"code": "n = int(input())\nresult_dict = {'AC':0,'WA':0,'TLE':0,'RE':0}\nfor i in range(n):\n    s = input()\n    result_dict[s] += 1\n \nprint('AC'+' x '+str(result_dict['AC']))\nprint('WA'+' x '+str(result_dict['WA']))\nprint('TLE'+' x '+str(result_dict['TLE']))\nprint('RE'+' x '+str(result_dict['RE']))", "passed": true, "time": 0.15, "memory": 14308.0, "status": "done"}, {"code": "N = int(input())\nAC = 0\nWA = 0\nTLE = 0\nRE = 0\nfor i in range(N):\n  value = str(input())\n  if value == 'AC':\n    AC += 1\n  elif value == 'WA':\n    WA += 1\n  elif value == 'TLE':\n    TLE += 1\n  else:\n    RE += 1\nprint(('AC x ' + str(AC)))\nprint(('WA x ' + str(WA)))\nprint(('TLE x ' + str(TLE)))\nprint(('RE x ' + str(RE)))\n", "passed": true, "time": 0.2, "memory": 14388.0, "status": "done"}, {"code": "N = int(input())\ndic = {\"AC\": 0, \"WA\": 0, \"TLE\": 0, \"RE\": 0} # \u30ad\u30fc\u3068\u521d\u671f\u5024\u3092\u8a2d\u5b9a\n\nfor i in range(N):\n    S = input()\n    if S == \"AC\":\n        dic[\"AC\"] += 1\n    elif S == \"WA\":\n        dic[\"WA\"] += 1\n    elif S == \"TLE\":\n        dic[\"TLE\"] += 1\n    else:\n        dic[\"RE\"] += 1\n\nfor key in list(dic.keys()):\n    print((\"{0} x {1}\".format(key, dic[key])))\n\n", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "N = int(input())\nC = 0\nD = 0\nE = 0\nF = 0\nS = ''\n\nfor i in range(N):\n    S = input()\n    if S == 'AC':\n        C += 1\n    elif S == 'WA':\n        D += 1\n    elif S == 'TLE':\n        E += 1\n    elif S == 'RE':\n        F += 1\nprint('AC x '+ str(C), 'WA x ' + str(D),  'TLE x ' + str(E),  'RE x ' + str(F), sep='\\n')\n", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "n=int(input())\na,w,t,r=0,0,0,0\nfor i in range(n):\n  g=input()\n  if g=='AC':\n    a+=1\n  if g=='WA':\n    w+=1\n  if g=='TLE':\n    t+=1\n  if g=='RE':\n    r+=1\nprint('AC x ' + str(a))\nprint('WA x ' + str(w))\nprint('TLE x ' + str(t))\nprint('RE x ' + str(r))", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "n=int(input())\nd={\n  'AC':0,\n  'WA':0,\n  'TLE':0,\n  'RE':0\n}\n\nfor i in range(n):\n  d[input()]+=1\n\nfor k,v in d.items():\n  print(k,'x', v)", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "N = int(input())\n\nS = [input() for i in range(N)]\n\nc0 = (S.count(\"AC\"))\nc1 = (S.count(\"WA\"))\nc2 = (S.count(\"TLE\"))\nc3 = (S.count(\"RE\"))\n\nprint(\"AC x \" + str(c0))\nprint(\"WA x \" + str(c1))\nprint(\"TLE x \" + str(c2))\nprint(\"RE x \" + str(c3))", "passed": true, "time": 0.25, "memory": 14208.0, "status": "done"}, {"code": "n=int(input())\na=[input() for i in range(n)]\n\nfor i in ['AC','WA','TLE','RE']:\n  print(f'{i} x {a.count(i)}')", "passed": true, "time": 0.15, "memory": 14060.0, "status": "done"}, {"code": "N = int(input())\nAC = 0\nWA = 0\nTLE = 0\nRE = 0\n\nfor i in range(N):\n    S = input()\n    if S == \"AC\":\n        AC += 1\n    elif S == \"WA\":\n        WA += 1\n    elif S == \"TLE\":\n        TLE += 1\n    else:\n        RE += 1\n    \n    \nprint(\"AC x\",AC)\nprint(\"WA x\",WA)\nprint(\"TLE x\",TLE)\nprint(\"RE x\",RE)", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "n = int(input())\ns = [input().split() for i in range(n)]\na = 0\nb = 0\nc = 0\nd = 0\nfor i in range(n):\n    if s[i][0] == 'AC':\n        a += 1\n    elif  s[i][0] == 'WA':\n        b += 1\n    elif s[i][0] == 'TLE':\n        c += 1\n    else:\n        d += 1\nprint('AC x '+str(a))\nprint('WA x '+str(b))\nprint('TLE x '+ str(c))\nprint('RE x '+str(d))", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "from collections import Counter\nfrom typing import List\n\n\ndef answer(n: int, s: List[str]) -> List[str]:\n    result = []\n    judges = ['AC', 'WA', 'TLE', 'RE']\n    aggregate = {i: 0 for i in judges}\n    counter = Counter(s)\n\n    for i in counter:\n        aggregate[i] += counter[i]\n    for j in aggregate:\n        result.append(f'{j} x {aggregate[j]}')\n\n    return result\n\n\ndef main():\n    n = int(input())\n    s = [input() for _ in range(n)]\n    for i in answer(n, s):\n        print(i)\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.16, "memory": 15392.0, "status": "done"}, {"code": "N = int(input())\nS_list = [input() for i in range(N)]\n\nac = S_list.count(\"AC\")\nwa = S_list.count(\"WA\")\ntle = S_list.count(\"TLE\")\nre = S_list.count(\"RE\")\n\nprint(f'AC x {ac}')\nprint(f'WA x {wa}')\nprint(f'TLE x {tle}')\nprint(f'RE x {re}')", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "n = int(input())\ns = []\nfor i in range(n):\n    s.append(input())\nac = s.count(\"AC\")\nwa = s.count(\"WA\")\ntle = s.count(\"TLE\")\nre = s.count(\"RE\")\n\nprint(\"AC x\", ac)\nprint(\"WA x\", wa)\nprint(\"TLE x\", tle)\nprint(\"RE x\", re)", "passed": true, "time": 0.15, "memory": 14204.0, "status": "done"}, {"code": "N = int(input())\n\ndata = [input() for _ in range(N)]\n\ndef f(s):\n  c = len([x for x in data if x in s])\n  print(f\"{s} x {c}\")\n  \nf(\"AC\")\nf(\"WA\")\nf(\"TLE\")\nf(\"RE\")\n", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "n = int(input())\nAC = 0\nWA = 0\nTLE = 0\nRE = 0\nfor i in range(n):\n    s = input()\n    if(s == \"AC\"):\n        AC += 1\n    elif(s == \"WA\"):\n        WA += 1\n    elif(s == \"TLE\"):\n        TLE  += 1\n    else:\n        RE += 1\nprint(('AC x {}'.format(AC)))\nprint(('WA x {}'.format(WA)))\nprint(('TLE x {}'.format(TLE)))\nprint(('RE x {}'.format(RE)))\n", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "N = int(input())\nC = 0\nD = 0\nE = 0\nF = 0\nS = ''\n\nfor i in range(N):\n    S = input()\n    if S == 'AC':\n        C += 1\n    elif S == 'WA':\n        D += 1\n    elif S == 'TLE':\n        E += 1\n    elif S == 'RE':\n        F += 1\nprint('AC x '+ str(C), 'WA x ' + str(D),  'TLE x ' + str(E),  'RE x ' + str(F), sep='\\n')\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "N=int(input())\nS=[]\nAC=0\nTLE=0\nWA=0\nRE=0\n\nfor i in range(0,N):\n\tS.append(input())\n\tif S[i]=='AC':\n\t\tAC+=1\n\telif S[i]=='TLE':\n\t\tTLE+=1\n\telif S[i]=='WA':\n\t\tWA+=1\n\telif S[i]=='RE':\n\t\tRE+=1\n\nprint('AC x %d'%AC)\nprint('WA x %d'%WA)\nprint('TLE x %d'%TLE)\nprint('RE x %d'%RE)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "N = int(input())\nS = []\nfor _ in range(N):\n    S.append(input())\n\nAC = 0\nWA = 0\nTLE = 0\nRE = 0\n\nfor s in S:\n    if(s == \"AC\"):\n        AC += 1\n    elif(s == \"WA\"):\n        WA += 1\n    elif(s == \"TLE\"):\n        TLE += 1\n    elif(s == \"RE\"):\n        RE += 1\n\nprint(f\"AC x {AC}\")\nprint(f\"WA x {WA}\")\nprint(f\"TLE x {TLE}\")\nprint(f\"RE x {RE}\")\n", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n=int(input())\ns=[input() for i in range(n)]\nprint(\"AC x \"+str(s.count(\"AC\")))\nprint(\"WA x \"+str(s.count(\"WA\")))\nprint(\"TLE x \"+str(s.count(\"TLE\")))\nprint(\"RE x \"+str(s.count(\"RE\")))", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "N = int(input())\nS = [input() for i in range(N)]\nA = 0\nW = 0\nT = 0 \nR = 0\n\nfor i in range(len(S)):\n  if S[i] == 'AC':\n    A += 1\n  elif S[i] == 'WA':\n    W += 1\n  elif S[i] == 'TLE':\n    T += 1\n  else:\n    R += 1\n\nprint('AC x ' + str(A))\nprint('WA x ' + str(W))\nprint('TLE x ' + str(T))\nprint('RE x ' + str(R))", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "N = int(input())\njudge = {\"AC\":0, \"WA\":0, \"TLE\":0, \"RE\":0}\n \nfor _ in range(N):\n    j_input = input()\n    for j in judge.keys():\n        if j_input == j:\n            judge[j] += 1\n \nfor j in judge.keys():\n    print(j , end = \" x \")\n    print(judge[j])", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "def main():\n    N = int(input())\n    result = {\"AC\": 0, \"WA\": 0, \"TLE\": 0, \"RE\":0}\n\n    for i in range(N):\n        result[input()] += 1\n\n    print(( \"AC x \" + str(result[\"AC\"]) ))\n    print((\"WA x \" + str(result[\"WA\"])))\n    print((\"TLE x \" + str(result[\"TLE\"])))\n    print((\"RE x \" + str(result[\"RE\"])))\n\nmain()\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "# list\u3058\u3083\u306a\u304f\u3066dict\u4f7f\u3044\u305f\u3044\nn = int(input())\nj = [0] * 4\nmoji = [\"AC\", \"WA\", \"TLE\", \"RE\"]\nfor i in range(n):\n    s=input()\n    if s == \"AC\":\n        j[0] += 1\n    elif s==\"WA\":\n        j[1] += 1\n    elif s==\"TLE\":\n        j[2] += 1\n    elif s == \"RE\":\n        j[3] += 1\nfor k in range(4):\n    print(f\"{moji[k]} x {j[k]}\")\n", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "N = int(input())\nac, wa, tle, re = 0, 0, 0, 0\nfor i in range(N):\n    s = input()\n    if s == \"AC\": ac += 1\n    elif s == \"WA\": wa += 1\n    elif s == \"TLE\": tle += 1\n    else: re += 1\nprint(\"AC x {}\".format(ac))\nprint(\"WA x {}\".format(wa))\nprint(\"TLE x {}\".format(tle))\nprint(\"RE x {}\".format(re))", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "def resolve():\n    N = int(input())\n    AC=0;WA=0;TLE=0;RE=0\n    for i in range(N):\n        S = input()\n        if S==\"AC\":\n            AC+=1\n        elif S==\"WA\":\n            WA+=1\n        elif S==\"TLE\":\n            TLE+=1\n        elif S==\"RE\":\n            RE+=1\n\n    print(\"AC x \"+str(AC))        \n    print(\"WA x \"+str(WA))        \n    print(\"TLE x \"+str(TLE))        \n    print(\"RE x \"+str(RE))    \n\nresolve()", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "N = int(input().split()[0])\na = [0,0,0,0]\nfor i in range(N):\n    b=input().split()[0]\n    if(b == 'AC'):\n        a[0]+=1\n    elif(b == 'WA'):\n        a[1]+=1\n    elif(b == 'TLE'):\n        a[2]+=1\n    elif(b == 'RE'):\n        a[3]+=1\nprint((\"AC x {0}\\nWA x {1}\\nTLE x {2}\\nRE x {3}\".format(a[0],a[1],a[2],a[3])))\n", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "N = int(input())\nans_ac = 0\nans_wa = 0\nans_tle =0\nans_re =0\n\nfor i in range(N):\n    S = input()\n    if S == 'AC':\n        ans_ac += 1\n    elif S == 'WA':\n        ans_wa += 1\n    elif S == 'TLE':\n        ans_tle += 1\n    else:\n        ans_re += 1\n\nprint('AC','x',ans_ac)\nprint('WA','x',ans_wa)\nprint('TLE','x',ans_tle)\nprint('RE','x',ans_re)", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}]