The five digits are all different, and he has observed that the first two digits form a perfect square, while the last two digits form a smaller perfect square. Also, the middle digit is the smallest. If he arranges the five digits to form all possible five-digit integers (leading zeros allowed) and adds all these numbers, the sum is a palindrome, with each of its digits a multiple of three.
What is the combination?