Road Construction

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

문제

There are n+mn+m towns in Kingdom of Coffee Chicken, which can be seen as n+mn+m integers coordinates (x_i,y_i)(x\_i,y\_i) on the 2-dimensional plane. nn of them belong to Acesrc while the other mm towns belong to Roundgod.

Now both Acesrc and Roundgod want to build straight roads among their towns and they all want their towns are connected, which means there is a path between any two of towns. It is obvious that we need only n+m2n+m-2 roads to make it possible. Moreover, Acesrc and Roundgod hope that among these n+m2n+m-2 roads, there is no intersection other than the position of towns.

Now we hope you to provide us a construction plan.

입력

The first line contains two integers n,m(n>1,m>1,n+m3000)n,m(n>1,m>1,n+m \leq 3000).

The following nn lines describe Acesrc's towns and each line contains two integers x,y(0x,y109)x,y(0 \leq x,y \leq 10^9) representing coordinates. Their number is 1n1-n respectively.

The following nn lines describe Roundgod's towns and each line contains two integers x,y(0x,y109)x,y(0 \leq x,y \leq 10^9) representing coordinates. Their number is 1m1-m respectively.

There is no repeated coordinates among those n+mn+m towns. We also guarantee that no three towns are on the same straight line among them.

출력

Please output n+m2n+m-2 lines in total, the first n1n-1 lines representing the construction plan of Acesrc's towns and the other m1m-1 lines representing the construction plan of Roundgod's towns. For each line of a construction plan, please output two integers x,yx,y, indicating a straight road connected town xx and yy

If it is impossible to find any valid construction plan, output Impossible instead.