for _ in range(int(input())): N, K = map(int, input().split()) win = (N % (K+1) != 1) print('Win' if win else 'Lose')