import std.algorithm, std.array, std.container, std.range; import std.string, std.conv, std.math; import std.stdio, std.typecons; alias Tuple!(int, "n", int, "k") game; void main() { auto p = readln.chomp.to!int; auto gi = iota(p).map!((i) { auto rd = readln.split.map!(to!int); return game(rd[0], rd[1]); }); foreach (g; gi) { writeln(g.n % (g.k + 1) == 1 ? "Lose" : "Win"); } }