initial solution for bribe the prisoners