blood_hash = [[:A, 0],[ :B, 0], [:AB, 0], [:O, 0]].to_h
while tmp = gets
  # break if tmp == ""
  tmp = tmp.chomp.split(",")
  blood_hash[tmp[1].to_sym] +=  1
end

blood_hash.each{|k,_|
  puts blood_hash[k]
}

