Avoiding the Abyss
문제
You are standing on a point with integer coordinates . You want to walk to the point with integer coordinates . To do this, you can walk along a sequence of line segments. But there is a swimming pool in your way. The swimming pool is an axis aligned rectangle whose lower left corner is on the point and the upper right corner is on the point . You cannot ever cross the swimming pool, not even on the border. However, it is dark and you do not know the coordinates and . Instead, you threw a rock into the pool which revealed that the point is in the pool (or on the boundary).
Find a way to walk from the start to the end point along a sequence of line segments, so that you never cross the swimming pool.
입력
The first line contains two integers and ().
The second line contains two integers and ().
The third line contains two integers and ().
The problem is not adaptive, i.e. for every test case there exist four integers (, ) that constitute a swimming pool. The start and end points are always strictly outside the swimming pool, and the point is inside (or on the border). The start and end points are always distinct.
출력
First, print one integer (), the number of points in between the start and end point that you want to visit. Then, print lines, the th containing two integers . These coordinates must satisfy . Note that these are not the same bounds than on the other coordinates.
This means that you will walk along straight line segments between such that none of the line segments touch the swimming pool. It can be proven that a solution always exists.
예제
예제 1
0 0 4 4 2 2
2 0 3 1 4