P=gets.to_i P.times do N,K=gets.split.map(&:to_i) puts N%(K+1)!=1 ? "Win":"Lose" end