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