{ sum[$2] += $3 } END { print "labA", sum["labA"] + 0; print "labB", sum["labB"] + 0 }