RedCapeFlyingCat found two rectangles, one of which completely contains the other, and wants to know which one contains which.
Two axis-aligned rectangles and are given. It is guaranteed that one of them contains the other (a rectangle's own boundary counts as part of it). Determine whether contains , or contains .
The image below is the sample test case.
| Testcase | Constraints |
|---|---|
| 1-5 | and do not share any boundary. |
| 6-10 | No additional constraint. |
Eight lines, each with one integer. For a rectangle , its bottom-left corner is and its top-right corner is ( increases rightward, increases upward).
Constraint:
One line containing A or B: the rectangle that contains the other.
If and are identical, output A.