A vertically mounted piston-cylinder device contains 1.5 kg of water and is being heated over a coal burning stove. During the process, 75 kJ of heat is transferred to the water and heat losses from the side walls amount to 9 kJ. The piston rises as a result of evaporation and 5000 N-m of work is done by the vapor. Determine the final energy of the system (i.e. water) if its initial energy was 419 kJ/kg.