A person goes to a savings bank to withdraw money. The first time he withdraws half of the deposit, there is an extra 5 yuan. The second time he withdraws the remaining half, there is still 10 yuan less. The third time he withdraws the deposit is 15 yuan. At this time, there is still 125 yuan left. How much money did you have in deposit?
某人去储蓄所取款，第一次取了存款的一半还多5元，第二次取了余下的一半还少10元，第三次取了存款15元，这时还剩125元，他原来有多少元存款？
<gadget id="calculator">15 - 10</gadget>
<output>5</output>

<gadget id="calculator">125 + 5</gadget>
<output>130</output>

<gadget id="calculator">130 * 2</gadget>
<output>260</output>

<gadget id="calculator">260 + 5</gadget>
<output>265</output>

<gadget id="calculator">265 * 2</gadget>
<output>530</output>

<result>530</result>