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