A frictionless cart of mass M carries two other frictionless carts having masses m1 and m2 connected by a string passing over a pulley as shown in figure. The horizontal force that must be applied on M, so that m1 and m2 do not move relative to it will be