Yesterday, Chef found $K$ empty boxes in the cooler and decided to fill them with apples. He ordered $N$ apples, where $N$ is a multiple of $K$. Now, he just needs to hire someone who will distribute the apples into the boxes with professional passion. 
Only two candidates passed all the interviews for the box filling job. In one minute, each candidate can put $K$ apples into boxes, but they do it in different ways: the first candidate puts exactly one apple in each box, while the second one chooses a random box with the smallest number of apples and puts $K$ apples in it.
Chef is wondering if the final distribution of apples can even depend on which candidate he hires. Can you answer that question?
Note: The boxes are distinguishable (labeled), while the apples are not. Therefore, two distributions of apples are different if there is a box such that the number of apples in it when the first candidate finishes working can be different from the number of apples in it when the second candidate finishes working.

-----Input-----
- The first line of the input contains a single integer $T$ denoting the number of test cases. The description of $T$ test cases follows.
- The first and only line of each test case contains two space-separated integers $N$ and $K$. 

-----Output-----
For each test case, print a single line containing the string "YES" if the final distributions of apples can be different or "NO" if they will be the same (without quotes).

-----Constraints-----
- $1 \le T \le 250$
- $1 \le N, K \le 10^{18}$
- $N$ is divisible by $K$

-----Subtasks-----
Subtask #1 (30 points): $1 \le N, K \le 10^5$
Subtask #2 (70 points): original constraints

-----Example Input-----
3
5 1
4 2
10 10

-----Example Output-----
NO
NO
YES

-----Explanation-----
Example case 1: No matter who is hired, all apples will be in the only box at the end.
Example case 2: At the end, there will be two apples in each box.
Example case 3: If we hire the first candidate, there will be one apple in each box, but if we hire the second one, there will be $10$ apples in one box and none in all other boxes.

Difficulty: interview

Starter code:

Solutions:
# cook your dish here
t=int(input())
for i in range(t,0,-1):
 x,y=map(int,input().split())
 k=x//y
 
 if k%y==0:
  print("NO")
 else:
  print("YES")

# cook your dish here
t = int(input())
for _ in range(t):
 n,k = map(int,input().split())
 if(n%(k*k)==0):
  print("NO")
 else:
  print("YES")
 t-=1

t = int(input())
while(t):
 n,k = list(map(int,input().split()))
 if n%(k*k)==0:
  print("NO")
 else:
  print("YES")
 t-=1


# cook your dish here
def hii(a,b):
 if b==1:
  print('NO')
 elif (a//b)%b!=0:
  print('YES')
 else:
  print('NO')
for _ in range(int(input())):
 n,k=list(map(int,input().split()))
 hii(n,k)

t=int(input())
for _ in range(t):
 n,k=map(int, input().split())
 if k==1:
  print("NO")
 elif(n//k)%k!=0:
  print("YES")
 else:
  print("NO")

t = int(input())
for _ in range(t):
 n, k = map(int,input().split())
 if k == 1:
  print("NO")
 elif (n // k) % k != 0:
  print("YES")
 else:
  print("NO")

t = int(input())
for _ in range(t):
 n,k = list(map(int,input().split()))
 f = n//k
 if f%k==0:
  print("NO")
 else:
  print("YES")


for _ in range(int(input())):
 n, k = list(map(int, input().split()))
 
 if n//k%k == 0:
  print("NO")
 else:
  print("YES")

# cook your dish here
T = int(input())
for i in range(T):
 n,k=list(map(int,input().split(" ")))
 if n//k%k==0:
  print("NO")
 else:
  print("YES")


# cook your dish here
t=int(input())
while(t>0):
 t-=1
 n,k=map(int,input().split())
 if((n//k)%k==0):
  print("NO")
 else:
  print("YES")

# cook your dish here
t = int(input())
for i in range(t):
 n,k = map(int,input().split())
 if n%(k*k)==0:
  print("NO")
 else:
  print("YES")

# cook your dish here
for _ in range(int(input())):
 n,k = map(int,input().split())
 if n%(k**2)==0:
  print('NO')
 else:
  print('YES')

for _ in range(int(input())):
 N, K = map(int, input().split())
 print('NO' if (N//K)%K == 0 else 'YES')

for _ in range(int(input())):
 N, K = map(int, input().split())
 print('NO' if (N/K)%K == 0 else 'YES')

for _ in range(int(input())):
 a = input().split()
 n = int(a[0])
 k = int(a[1])
 if n%(k*k):
  print("YES")
 else:
  print("NO")

# cook your dish here
t=int(input())
for i in range(t):
 N,K=list(map(int,input().split()))
 rest=N/K
 if rest%K==0:
  print("NO")
 else:
  print("YES")





# cook your dish here
t=int(input())
for i in range(t):
 N,K=list(map(int,input().split()))
 rest=N/K
 if rest%K==0:
  print("NO")
 else:
  print("YES")





# cook your dish here
t = int(input())
for _ in range(t):
 n, k = map(int, input().split())
 rest = n // k 
 if rest % k == 0:
  print("NO")
 else:
  print("YES")

def Cook(N, K):
 if K == 1:
  return "NO"
 if (N//K)%K:
  return "YES"
 return "NO"

for T in range(int(input())):
 N, K = map(int,input().split())
 print(Cook(N, K))

for test in range(int(input())):
 n,k=list(map(int,input().split()))
 if k==1:
  print("NO")
 else:
  a=n//k
  if a%k==0:
   print('NO')
  else:
   print('YES')


t=int(input())
for i in range(t):
 n,k=map(int,input().split())
 if (n//k)%k==0:
  print("NO")
 else:
  print("YES")