Two objects A and B, each of mass m, are connected by a light inextensible string. They are restricted to move on a frictionless ring of radius R in a vertical plane. The objects are released from rest at the position shown in figure. Then, the tension in the cord just after release is: