An electrically powered pump is used to pull water out of a well. In the course of an afternoon, the pump does 8.3 kJ of work lifting water out of a well. It also heats up, and releases 300 J of heat to the environment before returning to its original temperature. If there was no net change in the energy of the pump, how much electrical energy was required?