p = int(input()) for i in range(p): n,k = map(int, input().split()) win_number = (n-1) % (k+1) if win_number == 0: print("Lose") else: print("Win")