Prisoners five through nine are each looking for an odd number of black hats, which they see, so they figure out that their hats are white.
Los presos del cinco al nueve cada uno busca un número impar de sombreros negros lo que ven, entonces deducen que sus sombreros son blancos.