97. 96 matches are divided into three piles. Now, take out as many matches from the first pile as there are in the second pile and add them to the second pile, then take out as many matches from the second pile as there are in the third pile and add them to the third pile, finally, take out as many matches from the third pile as there are in the first pile and add them to the first pile. At this point, the three piles of matches are the same. Then originally, the first pile had $\qquad$ matches, the second pile had $\qquad$ matches, and the third pile had $\qquad$ matches.