{ x[substr($2, 1, 1)] += $1 } END { for (i in x) print i, x[i] }