A wooden block of mass M is suspended by a cord and is at rest. A bullet of mass m, moving with a velocity v passes through the block and comes out with a velocity v/2 in the same direction. If there is no loss in kinetic energy, then upto what height the block will rise: