Helesta
题号:NC236508
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld

题目描述

You are given n points and m sets ().  You need to find a permutation of , such that , where is a given constant and means .
If there are several possible answers, you can print any of them.

输入描述:

The first line contains two integers n,m ().

Each line in the next n lines contains two integers x_i,y_i ().

Each line in the next m lines contains three integers A_j, B_j, C_j ().

It is guaranteed that for .

输出描述:

Print m lines. In the i-th line, print a single integer p_i.
示例1

输入

复制
5 3
2021 700
-9384 1031
2201 2561
4982 6255
-1700 388
-2151 1808 -4359815
-2850 -1980 7147359
-924 217 -8902828

输出

复制
2
1
3