package yukicoder; import java.util.Scanner; public class StickUpGame { public static void main(String[] args){ @SuppressWarnings("resource") Scanner s = new Scanner(System.in); int game = s.nextInt(); int stick[] = new int[game]; int maxNum[] = new int[game]; for(int i = 0 ; i < game ; i++){ stick[i] = s.nextInt(); maxNum[i] = s.nextInt(); } for(int i = 0 ; i < game ; i++){ int n = stick[i]; int k = maxNum[i]; if((n <= k) || ((n%(k+1)) != 1)){ System.out.println("Win"); }else{ System.out.println("Lose"); } } } }