In the given circuit, ammeter reading is same when both switches S1, S2 are closed or opened. The value of resistance R is