P = int(input()) for _ in [0] * P: N, K = [int(i) for i in input().split()] if N % (K + 1) == 1: print("Lose") else: print("Win")