A chemical reaction is run in which 796 Joules of heat are generated and 235 Joules of work are done on the system. Calculate the change in the internal energy of the chemical system. Joules