A crane cross section is a polygon resting on the x-axis. Each 1×1 unit of area weighs 1 kg.
Extra weight is attached at the first polygon vertex. Find the range of attachable weight (in kg) for which the crane does not topple left or right. Print ⌊a⌋..⌈b⌉ for range [a,b], or ⌊a⌋..inf for [a,∞). Print unstable if no weight works.
Stable weight range, or unstable.