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