Two cells each of same emf e but of internal resistances $ r_1 $ and $ r_2 $ are connected in series through an external resistance R. If the potential difference between the ends of the first cell is zero, what will be the value of R in terms of $ r_1 $ and $ r_2 $ ?