A thin rod of mass m and length l is hinged to the ceiling and it is free to rotate in a vertical plane. A particle of mass m, moving with speed v strikes it as shown in the figure and gets stuck with the rod. The value of v, for which the rod becomes horizontal after collision is