n = int(input()) e = [[int(i) for i in input().split()] for i in range(n)] for ee in e: print("Lose" if ee[0] % (ee[1] + 1) == 1 else "Win")