The dog first chose a wolf as his master. But he found the wolf afraid of the bear. So he left the company of the wolf.