n=int(input())
a=0
b=0
c=0
d=0
for _ 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　×　',end='')
print(a)
print('WA　×　',end='')
print(b)
print('TLE　×　',end='')
print(c)
print('RE　×　',end='')
print(d)
