Air enters a compressor operating at steady state at 1 bar, 290 K, with a mass flow rate of 0.1 kg/s and exits at 980 K, 10 bar. The velocities at the inlet and exit are 10 m/s and 30 m/s, respectively. The air can be modeled as an ideal gas, and potential energy effects can be neglected. If the magnitude of the power input to the compressor is 77 kW, determine the rate of heat transfer, in kW.