import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int P = scanner.nextInt(); for (int i = 0; i < P; i++) { int N = scanner.nextInt(); int K = scanner.nextInt(); f(N, K); } } private static void f(int n, int k) { boolean[] win = new boolean[n + 1]; for (int i = n; i >= 0; i--) { for (int j = 1; j <= k; j++) { if (i + j > n - 1) break; if (!win[i + j]) { win[i] = true; break; } } } if (win[0]) { System.out.println("Win"); } else { System.out.println("Lose"); } } }