import java.util.Scanner; public class Main_yukicoder8 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); for (int i = 0; i < p; i++) { int n = sc.nextInt(); int k = sc.nextInt(); boolean[] dp = new boolean[n + 1]; dp[n] = false; dp[n - 1] = true; for (int j = n - 2; j >= 0; j--) { dp[j] = true; for (int l = 1; l <= k && j + l <= n; l++) { if (dp[j + l]) { dp[j] = false; break; } } } if (!dp[0]) { System.out.println("Win"); } else { System.out.println("Lose"); } } sc.close(); } }