gets.to_i.times do n, k = gets.split(' ').map(&:to_i) if n <= k puts 'Win' else puts (n - 1) % (k + 1) > 0 ? 'Win' : 'Lose' end end