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