10 very smart pirates sorted from high level to low level obtained 100 gold coins.
The captain (the highest one) has to divide the 100 coins among all the people. If at least half of the people are satisfied with what they get, it's OK. If not, they will kill the captain and the second person will become the captain and then he has to divide the coins.
The problem is: How the captain should distribute the coins so that he stays alive (more than half of the people are OK with the division)