Rearrangement of the Nine Palaces