The input consists of multiple test cases. The first line of input contains an integer T, which is the number of
test cases.Each test case is on several lines. The first line contains four integers: N, L, W, H, indicating the
number of obstacles; the length, width of the board; and the height of walls.
The coordinate of the lower-left corner is (0,0), the upper-right one is (L, W).
Each of the following N lines consists of five integers: Xi, Yi, Li, Wi, Hi, indicating the coordinate of the
lower-left corner of an obstracle and it's length, width and height. So the upper-right corner of the obstracle
is (Xi + Li, Yi + Wi).
The last line of a test case consists of four integers: Sx, Sy, Tx, Ty which indicate the coordinates of
start point:(Sx, Sy), and end point:(Tx, Ty).
[Technical Specification]
T is an integer, and T <= 50.
N is an integer, and 0 <= N <=10.
All integers EXCEPT N are in the range [1, 1000].
You can assume those obstracles? sides are parallel to OX, OY and OZ axis, the start point and end point are
rightful(not outside the board or inside an obstracle).
All part of an obstracle is in the board.
The integers on the same line are separated by ONE space.
The test cases are separated by ONE empty line.
NO other spaces or lines will appear in the test data.