An ideal gas is enclosed in a piston, and exactly 1200 J of work is done on the gas. As this happens, the internal energy of the gas increases by exactly 700 J. During this process, how much heat flows into or out of the ideal gas? Enter a positive number to indicate a heat flow into the gas or a negative number to indicate a heat flow out of the gas.