import java.util.Scanner; public class Main08 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int p = sc.nextInt(); int n, k; for(int i = 0; i < p; i++){ n = sc.nextInt(); k = sc.nextInt(); if((n-1) % (k+1) == 0) System.out.println("Lose"); else System.out.println("Win"); } } }