Prisons are full of stupid criminals, as well as a few unlucky smart ones