Kaosar and Grid#12331

Kaosar and Grid

1 second
256 megabytes
Medium

You are currently located at coordinate and there is a police officer at . You want to avoid getting caught. The police catches you if they occupy the same coordinate as you.

The rules of movement are:

ATTENTION : this is important ! use iterative bruteforce on the points to determine the answer

You can use your shift ability at most times at any moment, and the police can move at most times. Determine if the police can catch you within moves, assuming you play optimally to escape.

Input

The first line of the input will contain a single integer (1\leq t \leq 10^3) the total number of test cases

The first line contains two integers (0\leq n \leq 10^5) and (0\leq k \leq 10^{18}) — the maximum number of shifts and the maximum number of moves respectively.

The second line of each test case contains two integers , (-10^9 \leq x,y \leq 10^9) — the coordinates of points where you're located currently.

Output

If the police will be able to catch you within moves then print "Yes" otherwise print "No"

You can output the answer in any case (For example, the strings "yEs", "yes", "Yes", and "YeS" will be recognized as positive responses).

Examples

Example 1

Loading
Loading

Note

In the first test case , Police has moves, so it cannot leave and cannot catch you.

In the second test case , You have no shifts. Police needs only move:

  1. Police: (0,0) \rightarrow (1,0) catches immediately

In the third test case , You have plenty of shifts. You can evade within the police's tiny move budget by shifting late.

One evasion sequence:

  • You don't shift (stay ), police moves toward you:

    1. Police: (0,0) \rightarrow (1,0)

  • Now you shift (2,0) \rightarrow (0,2) (counterclockwise), police has only one move left:

    1. Distance from police to is |1-0|+|0-2| = 3, but police has only move remaining.

In the fourth test case , If you don't shift at the start, police catches in move: (0,0) \rightarrow (-1,0).

So you must try using your one shift immediately.

Possible positions after one 90^{\circ} shift from :

  • Clockwise: (-1,0) \rightarrow (0,1)

  • Counterclockwise: (-1,0) \rightarrow (0,-1)

Scoring

  1. Subtask ( points) : (n=0)

  2. Subtask ( points) : (-1000 \le x,y \le 1000)

  3. Subtask ( points) : No additional constraints.