Reduction of the Three-Partition Problem