Pigsy picked a bag of wild fruits from the mountain to bring back to Tang Monk. As he walked, he got hungry and took out half of them, hesitated, put back two, and then ate the rest. This happened four times: taking out half, putting back two, and then eating. By the time he reached Tang Monk, there were 5 wild fruits left in the bag. How many wild fruits did Pigsy originally pick?