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