import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines P = int(readline()) m = map(int,read().split()) NK = zip(m,m) answer = [] for n,k in NK: answer.append('Win' if (n-1) % (k+1) else 'Lose') print('\n'.join(answer))