The number groups below are the last five digits of the fifth powers
of the numbers 31 through 39. However, the groups aren't in the right
order to represent the fifth powers of 31 through 39 sequentially. Using
only these digits, and without using a calculator, can you place the
groups in the correct order?