gets while line = gets do n, k = line.split.map(&:to_i) puts (n - 1) % (k + 1) == 0 ? "Lose" : "Win" end