the value of each resistance is r