A long rod ABC of mass m and length L has two particles of masses m and 2m attached to it as shown in the figure. The system is initially in the horizontal position. The work to be done to keep it vertical with A at the bottom is (g= acceleration due to gravity)