Distribute $1000 into three parts so that one part will be three times as large as the second and the third part will be as large as the sum of the other two.​