Arrange the digits 1, 2, 3, 4, 5, 6, 7, 8 to form two 4-digit integers whose difference is as small as possible.