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