A businessman rides a donkey across a 1,000-kilometer desert to sell 3,000 carrots. It is known that a donkey can carry 1000 carrots at a time, but it will eat another carrot for every kilometer it travels. Q: How many carrots can a merchant sell at most?
一个商人骑一头驴要穿越1000公里长的沙漠，去卖3000根胡萝卜．已知驴一次性可驮1000根胡萝卜，但每走1公里又要吃掉1根胡萝卜．问：商人最多可卖出多少胡萝卜？
<gadget id="calculator">1_000 - 466</gadget>
<output>534</output>

<result>534</result>