input_num = input().rstrip()

AC_count = 0
WA_count = 0
TLE_count = 0
RE_count = 0

for string in range(input_num):
	if string == 'AC':
    	AC_count += 1
	elif string == 'WA':
    	WA_count += 1
	elif string == 'TLE':
    	TLE_count += 1
	else:
    	RE_count += 1

print('AC_count x ' + AC_count)
print('WA_count x ' + WA_count)
print('TLE_count x ' + TRE_count)
print('RE_count x ' + RE_count)
