{m[a[++i]=$0]=$NF}END{for(j=2e4;j--&&r=k+1;)for(l=0;v=a[++l];)if(m[v]==j&&++k)print r,v}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page