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