In the circuit shown in figure the reading of ideal ammeter connected as shown is same with both switches open as with both closed. Then find the resistance R ( in ohm ).