<s>[INST] In a small village, a man purchased a fox, a goose, and a bucket of beans. He came to a river and found a small boat, but the boat was too small to carry himself and all of his purchases at the same time. If the man takes the fox and the goose across the river first and leaves the beans, a sly fox will eat the goose when he returns to the original side to pick up the beans. If he takes the goose and the beans across the river first and leaves the fox, the fox will eat the beans when he returns to pick up the goose. And if he takes the beans across the river first and leaves the fox and the goose, the goose will eat the beans when he returns to pick up the fox and the goose. How can the man get all of his purchases across the river without anything being eaten?[/INST]