A bullet of mass m moving vertically upwards instantaneously with a velocity 'u' hits the hanging block of mass 'm' and gets embedded in it, as shown in the figure.The height through which the block rises after the collision. (assume sufficient space above block) is: