import java.io.*; import java.util.*; class Main8 { public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int p = Integer.parseInt(br.readLine()); for (int i = 0; i < p; i++) { String[] line = br.readLine().split(" "); int n = Integer.parseInt(line[0]); int k = Integer.parseInt(line[1]); System.out.println(n <= k ? "Win" : (n - 1) % (k + 1) == 0 ? "Lose" : "Win"); } } }