There is 1 ton of vegetables in the farmer's market, 247 kg were sold in the morning, and another 165 kg in the afternoon. How many vegetables are left in the farmer's market now?
农贸市场有1吨蔬菜，上午卖出了247千克，下午又卖出了165千克，现在农贸市场还剩下多少蔬菜？
<gadget id="calculator">1 * 1_000</gadget>
<output>1_000</output>

<gadget id="calculator">247 + 165</gadget>
<output>412</output>

<gadget id="calculator">1_000 - 412</gadget>
<output>588</output>

<result>588</result>