Connect the Points

아직 제출이 없습니다시간 제한3초메모리 제한512 MB

문제

You are given three points on a plane. You should choose some segments on the plane that are parallel to coordinate axes, so that all three points become connected. The total length of the chosen segments should be the minimal possible.

Two points aa and bb are considered connected if there is a sequence of points p_0=a,p_1,,p_k=bp\_0 = a, p\_1, \ldots, p\_k = b such that points p_ip\_i and p_i+1p\_{i+1} lie on the same segment.

입력

The input consists of three lines describing three points. Each line contains two integers xx and yy separated by a space --- the coordinates of the point (109x,y109-10^9 \le x, y \le 10^9). The points are pairwise distinct.

출력

On the first line output nn --- the number of segments, at most 100.

The next nn lines should contain descriptions of segments. Output four integers x_1x\_1, y_1y\_1, x_2x\_2, y_2y\_2 on a line --- the coordinates of the endpoints of the corresponding segment (109x_1,y_1,x_2,y_2109-10^9 \le x\_1, y\_1, x\_2, y\_2 \le 10^9). Each segment should be either horizontal or vertical.

It is guaranteed that the solution with the given constraints exists.

힌트

The points and the segments from the example are shown below.