# frozen_string_literal: true def solve NK.map do |n, k| n % (k + 1) == 1 ? 'Lose' : 'Win' end end P = gets.to_i NK = P.times.map { gets.split.map(&:to_i) } puts solve