P = int(input()) for m in range(P): N, K = list(map(int,input().split())) if (N-1) % (K+1) != 0: print("Win") else: print("Lose")