Two cells, having the same emf, are connected in series through an external resistance $R$. Cells have internal resistances $ r_{1} $ and $ r_{2} $ $ (r_{1} > r_{2}), $ respectively. When the circuit is closed, the potential difference across the first cell is zero. The value of $R$ is