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(f"AC ✖︎ {AC}")
print(f"WA ✖︎ {WA}")
print(f"TLE ✖︎ {TLE}")
print(f"RE ✖︎ {RE}")