Types: n: int, l: List[int], t: List[int], r: List[int], b: List[int]
Ranges: 1 ≤ n ≤ 50, 0 ≤ l[i] < r[i] ≤ 10^6, 0 ≤ b[i] < t[i] ≤ 10^6 for 1 ≤ i ≤ n
Addtl Info: Input is terminated by a single zero.