In the circuit shown switch S is connected to position 2 for a long time and then joined to position 1. The total heat produced in a resistance R1is