import std.stdio, std.conv, std.string, std.range, std.math, std.bigint, std.algorithm; void main() { auto P = readln.strip.to!int; int[] N, K; foreach (_; 0 .. P) { auto input = readln.split.to!(int[]); N ~= input[0]; K ~= input[1]; } iota(P).each!(i => (N[i]<=K[i]?"Win":N[i]%(K[i]+1)==1?"Lose":"Win").writeln); }