def solve(n,k) n % (k+1) == 1 ? "Lose" : "Win" end m = gets.to_i m.times { n, k = gets.split.map(&:to_i) puts solve(n,k) }