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