A 4μF capacitor is charged to 400V and then the plates are joined through a 1000 ohm resistor. The heat produced in the resistor is :