At the peak of its trajectory, a 995 -g fireworks rocket is moving horizontally at $18.6 \mathrm{~m} / \mathrm{s}$. It's a dud, and instead of exploding gloriously, it bursts into two pieces. One of them, with mass $372 \mathrm{~g}$, continues in the original direction at $31.3 \mathrm{~m} / \mathrm{s}$. How much energy did the two pieces gain when the rocket burst?