P = int(input()) list = [input() for i in range(P)] def do_not_say_N(): global P for i in range(P): a, b = map(int, list[i].split()) w = (a - 1) % (b + 1) if w > 0 and w <= b: print('Win') else: print('Lose') do_not_say_N()