You and Bob are playing Hyper Smawk Bros against each other, facing a single boss with health . You and Bob act alternately, and you start. On your turn, you may use an attack that deals an integer amount of damage in , replacing with . However, you cannot use the same that your opponent just used on the previous turn (on the very first move of the game, any in is allowed).
The winner is the first player to reduce the boss’s health to . Determine whether you can force a win if Bob plays optimally.
输入格式
Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
The only line of each test case contains two integers (, ) — the starting health and the maximum damage per attack .
Note that there are no constraints on the sum of over all test cases, and there are no constraints on the sum of over all test cases.
输出格式
For each test case, output YES if you can force a win against Bob, and NO otherwise.
The judge is case-insensitive (for example, YES, Yes, yes, yEs will all be recognized as positive answers).