A man has to cross a river with a wolf, a goat, and a cabbage. He has a boat that can carry only him and one item at a time. If he leaves the wolf with the goat, the wolf will eat the goat. If he leaves the goat with the cabbage, the goat will eat the cabbage. How will he do it?