print join ' ', map { chomp; (split)[-1] } grep /\s+\d+$/, ; print " Done!\n"