Let the 24 numbers be . Further, let the th number be where all are in {2,4,6,8}. Let's find . Each of the four numbers is encountered 6 times, so the . Therefore, the first digits of all numbers contribute 120 * 1000 to the whole sum. Similarly, the second digits contribute 120 * 100 and so on.