P = int(input()) for _ in range(P): n, k = map(int, input().split()) print("Win" if (n-1) % (k+1) else "Lose")