!($2 in best) || $3 > best[$2] { best[$2] = $3; name[$2] = $1 } END { print name["labA"], best["labA"] print name["labB"], best["labB"] }