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