There are two piles of stones, the first pile is 500 kilograms more than the second pile, now 100 kilograms are removed from the two piles, and the rest of the first pile is exactly 100 kilograms more than 5 times the second pile. How many kilograms?
有两堆石子，第一堆比第二堆多500千克，现在从两堆中分别运走100千克，第一堆剩下的正好比第二堆的5倍多100千克，第一堆原来有多少千克？
<gadget id="calculator">500 - 100</gadget>
<output>400</output>

<gadget id="calculator">5 - 1</gadget>
<output>4</output>

<gadget id="calculator">400 / 4</gadget>
<output>100</output>

<gadget id="calculator">100 + 100 + 500</gadget>
<output>700</output>

<result>700</result>