A six-digit integer is formed by placing two 3-digit integers side by side. If the larger of the two integers is placed ahead of the smaller integer, the number formed is six times greater than if the smaller integer is placed ahead of the larger one. What is the sum of the two 3-digit integers?