Flogging the prisoner in the medieval prison