import java.util.Scanner; public class Main{ static final Scanner s=new Scanner(System.in); public static void main(String args[]){ for(int p=s.nextInt();p>0;p--) { int n=s.nextInt(),k=s.nextInt(); //System.out.println((n-1)%(k+1)); System.out.println((n-1)%(k+1)!=0?"Win":"Lose"); } } }