Aerobatics - 6

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

문제

Bitaro will participate in an aerobatics competition. In this competition, Bitaro will fly an airplane. The airplane will keep a certain altitude, and pass through the checkpoints. The area where the airplane will fly is considered as a coordinate plane. There are NN checkpoints, numbered from 11 to NN. The coordinate of the checkpoint ii (1iN1 \le i \le N) is (X_i,Y_iX\_i, Y\_i).

During the competition, the airplane must pass through each checkpoint once. More precisely, the airplane must fly in the following way.

  1. First, Bitaro chooses the starting checkpoint, and the airplane will start flying from there.
  2. Repeat the following N1N - 1 times. Among the checkpoints which are not yet chosen, Bitaro chooses a checkpoint as the next checkpoint. Then the airplane will fly straight from the current checkpoint to the next checkpoint.
  3. When the airplane arrived at the last checkpoint, the flight is finished.

Here, in the step 2, we consider the starting checkpoint as an already chosen checkpoint. The airplane must fly straight from a checkpoint to the next checkpoint. It is forbidden to draw a curve or make a turn on the way.

The route of the airplane is a polygonal line. During the flight, the airplane will change its direction at most N2N - 2 times. If the angle of the polygonal line at a checkpoint is small, the change of the direction of the airplane at that checkpoint is large, and there is a risk of failure of the flight.

Therefore, Bitaro wants to make the minimum angle of the polygonal line at the N2N - 2 checkpoints, except for the starting checkpoint and the last checkpoint, as large as possible.

Given the coordinates of the checkpoints, find an order of the checkpoints to pass so that the minimum angle of the polygonal line is as large as possible.

입력

The input data is given in the following format. Given values are all integers. Here, Z_0Z\_0 is a parameter used by the grader.

NZ_0N Z\_0

X_1Y_1X\_1 Y\_1

\vdots

X_NY_NX\_N Y\_N

출력

The output should consist of NN lines. The kk-th line (1kN1 \le k \le N) of the output should contain the integer P_kP\_k (1P_k N1 \le P\_k \le N), which is the kk-th checkpoint in the route of the airplane. Here, the starting checkpoint is the first checkpoint P_1P\_1.

제한

  • 3N10003 \le N \le 1 000.
  • X_i2+Y_i210000000\sqrt{X\_i^2 + Y\_i^2} \le 10 000 000 (1iN1 \le i \le N).
  • (X_i,Y_iX\_i, Y\_i) \ne (X_j,Y_jX\_j, Y\_j) (1i<jN1 \le i < j \le N).
  • 1Z_01791 \le Z\_0 \le 179.