import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { FastReader fr = new FastReader(); PrintWriter pw = new PrintWriter(System.out); int p = fr.nextInt(); for (int t = 0; t < p; t++) { int n = fr.nextInt(); int k = fr.nextInt(); // Fast bit manipulation alternative to modulo if (k == 0) { pw.println((n & 1) == 1 ? "Win" : "Lose"); } else { int remainder = (n - 1) % (k + 1); pw.println(remainder == 0 ? "Lose" : "Win"); } } pw.flush(); pw.close(); } // Custom Fast Reader class for fastest input static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } } }