Ops teams schedule maintenance windows as [start, end] intervals (inclusive
integer timestamps). Overlapping or touching windows (next start <= current
end) must be merged into one.
Input Format:
Line 1: n (number of windows)
Lines 2 to n+1: start end (two integers; not necessarily sorted)
Output Format:
One line per merged window: "start end", sorted by start ascending.