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