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(); boolean[] win = new boolean[N]; win[N - 1] = false; int last_lose = N - 1; for(int cur = N - 2; cur >= 0; cur--){ if(cur + K >= last_lose){ win[cur] = true; }else{ win[cur] = false; last_lose = cur; } } //System.out.println(Arrays.toString(win)); System.out.println(win[0] ? "Win" : "Lose"); } } }