gets.to_i.times{|i| n,k=gets.split.map! &:to_i puts (n%(k+1)==1 )? "Lose" : "Win" }