P = int(input()) for _ in range(P): n, k = map(int, input().split()) while n > 1: n = n - (k + 1) if n == 1: print('Lose') else: print('Win')