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