import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int P = Integer.parseInt(br.readLine()); for (int i = 0; i < P; i++) { String[] strs = br.readLine().split(" "); int N = Integer.parseInt(strs[0]); int K = Integer.parseInt(strs[1]); int tmp = N % (K + 1); if (tmp != 1) { System.out.println("Win"); } else { System.out.println("Lose"); } } } }