N = int(input()) for i in range(N): n, k = map(int, input().split()) print('Win' if 0 < (n - 1) % (k + 1) <= k else 'Lose')