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]; int win = n - 1; while (win >= 0) { dp[win] = true; win -= k + 1; } if (!dp[0]) { System.out.println("Win"); } else { System.out.println("Lose"); } } sc.close(); } }