Given two rectangles whose sides are parallel or perpendicular to the coordinate axes. The coordinates of the lower left and upper right corners of each of them are known. Find the coordinates of the lower-left and upper-right corners of the minimum rectangle containing the specified rectangles (the rectangle's border can touch its nested rectangles).

Input
The first line is the coordinates of the corners of the first rectangle (4 numbers separated by spaces: x_{1}, y_{1}, x_{2}, y_{2}).
The second line is the coordinates of the corners of the second rectangle (4 numbers separated by a space: x_{3}, y_{3}, x_{4}, y_{4}).

Imprint
4 numbers separated by a space - the coordinates of the lower left and upper right corners of the minimum rectangle.