import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int P = scan.nextInt(); for(int i = 0; i < P; i++) { int N = scan.nextInt(); int K = scan.nextInt(); if(N <= K) { System.out.println("Win"); }else { if((N - 1) % (K + 1) == 0) { System.out.println("Lose"); }else { System.out.println("Win"); } } } scan.close(); } }