Dots and Lines#1744

Dots and Lines

1 second
64 megabytes
Very easy

Vasya and Petya are playing the following game. Vasya draws points on a plane and announces the number . Petya has to determine whether it is possible to connect these points using lines, such that:

  1. Each line connects exactly two points.

  2. No line connects a point to itself.

  3. For any pair of points, there is at most one line connecting them.

  4. There exist two points and such that it is impossible to reach from by moving along the drawn lines (you may travel along lines in either direction).

If Petya answers correctly, he wins; otherwise Vasya wins.

Your task is to write a program that will help Petya always win.

Input

The first line contains the integer — the number of test cases (1 \le K \le 1000). The following lines each contain two integers (1 \le N \le 10^9) and (0 \le M \le 10^9).

Output

For each test case, output the correct answer on a separate line: "Yes" (if the answer is positive), or "No" (if the answer is negative).

Examples

Example 1

Loading
Loading