Figure shows a smooth track, a part of which is a circle of radius r. A block of mass m is pushed against a spring of spring constant k fixed at the left end and is then released. Find the initial compression of the spring so that the block presses the track with a force mg when it reaches the point P, where the radius of the track is horizontal.