Any number divisible three must have the sum of its digits divisible by three.

Note that thus if we add any two of we have an eight-digit number divisible by three.

Note also that those are the only eight-digit numbers divisible by three.

Rearrange each set. What is the total?