Labeled Points

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

문제

Consider NN points on the Cartesian plane. The points are labeled with positive integers from 11 to NN. The points are special: for each point (x_i,y_i)(x\_i, y\_i), the coordinates are positive integers, and the equality x_imod2=y_i/2mod2x\_i \bmod 2 = \lfloor y\_i / 2 \rfloor \bmod 2 holds.

Your task is to select a sequence of KK of those points with the following property: the distance between every pair of points from this sequence is not less than 22. Among all such sequences, find the one for which the sequence of the points' labels is lexicographically minimal.

입력

The first line of input contains two integers NN and KK (2KN60002 \le K \le N \le 6000). Each of the next NN lines contains coordinates of a point: two integers x_ix\_i and y_iy\_i  (1x_i,y_i1091 \le x\_i, y\_i \le 10^9, x_imod2=y_i/2mod2x\_i \bmod 2 = \lfloor y\_i / 2 \rfloor \bmod 2).

It is guaranteed that all given points are pairwise distinct.

출력

If it is impossible to select KK points so that the distance between every pair of them is not less than 22, print 1-1. Otherwise, print KK integers, one integer per line: the sequence with the desired property which is lexicographically minimal.