Naughty to withdraw money, the first time he withdrew half of the deposit amount plus 50 yuan, and the second time he withdrew the remaining half plus 10 yuan, leaving 300 yuan, how much did he have in deposit?
淘气去取款，第一次取了存款数的一半多50元，第二次取了余下的一半多10元，还剩下300元，他原来有存款多少元？
<gadget id="calculator">300 + 10</gadget>
<output>310</output>

<gadget id="calculator">310 * 2</gadget>
<output>620</output>

<gadget id="calculator">620 + 50</gadget>
<output>670</output>

<gadget id="calculator">670 * 2</gadget>
<output>1_340</output>

<result>1_340</result>