There are two piles of small balls, A and B. Pile A has more balls than Pile B, and the number of balls in Pile A is more than 130, but not more than 200. Take out the same number of balls from Pile A as Pile B and put them into Pile B; For the second time, take out the same number of balls from pile B as the rest of pile A and put them in pile A; ..., continue in this way, after moving five times, it is found that there are as many small balls in piles A and B. Then, how many small balls are there in A pile?
有甲、乙两堆小球，甲堆小球比乙堆多，而且甲堆球数比130多，但不超过200，从甲堆拿出与乙堆同样多的球放入乙堆中；第二次，从乙堆拿出与甲堆剩下的同样多的球放到甲堆中；…，如此继续下去，挪动五次以后，发现甲、乙两堆的小球一样多．那么，甲堆原有小球多少只．
<result>172</result>