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