p = int(input()) for i in range(p): n,k = map(int, input().split()) win_number = (n-1) % (k+1) if win_number >0 and win_number <=k: print("win") else: print("Lose")