A mass M is hung with a light inextensible string. Tension in horizontal part of string is: