A mass m is undergoing SHM in the vertical direction about the mean position y0 with amplitude A and angular frequency ω. At a distance y from the mean position, the mass detaches from the spring. Assume that the spring contracts and does not obstruct the motion of m. Find the distance y∗ (measured from the mean position) such that the height h attained by the block is maximum. (Aω)2>g