The rabbit and pirate problem

Cherry