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