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