The pressure in an ideal gas is slowly reduced to $14^{\frac{1}{4}}$ its initial value, while being kept in a container with rigid walls. In the process $800 \mathrm{~kJ}$ of heat leaves the gas. What is the change in internal energy of the gas during this process?