A refrigerator whose coefficient of performance is 5 extracts heat from the cooling compartment at the rate of 250 J/cycle. How much electric energy is spent per cycle? How much heat per cycle is discharged to the room?