Use the eight numbers 1, 2, 3, 4, 5, 6, 7, and 8 to form two different four-digit numbers (each number is used only once) to minimize their difference, then what is the difference.
用1，2，3，4，5，6，7，8这八个数字组成两个不同的四位数(每个数字只用一次)使他们的差最小，那么这个差是多少．
<gadget id="calculator">5_123 - 4_876</gadget>
<output>247</output>

<result>247</result>