import std.stdio; import std.conv, std.array, std.algorithm, std.string; import std.math, std.random, std.range, std.datetime; import std.bigint; void main(){ int p = readln.chomp.to!int; foreach(i; 0 .. p){ int n, k; { int[] xs = readln.chomp.split.map!(to!int).array; n = xs[0], k = xs[1]; } string ans; if((n - 1) % (k + 1) == 0) ans = "Lose"; else ans = "Win"; ans.writeln; } }