The cable of an elevator of mass M = 4790 kg snaps when the elevator is a rest at one of the floors of a skyscraper. At this point the elevator is a distance d = 78.4 m above a cushioning spring whose spring constant is k = 7400 N/m. A safety device clamps the elevator against the guide rails so that a constant frictional force of f = 21688 N opposes the motion of the elevator. Find the maximum distance by which the cushioning spring will be compressed.