import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class No8 { public static void main(String[] args) throws IOException{ //N言っちゃダメゲーム String[] text = readStr(); int P = Integer.parseInt(text[0]) , N , K; for(int i = 0;i < P;i++) { N = Integer.parseInt(text[i+1].split(" ")[0]); K = Integer.parseInt(text[i+1].split(" ")[1]); System.out.println((N - 1) % (K + 1) != 0 ? "Win" : "Lose"); } } public static String[] readStr() throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList list = new ArrayList<>(); do { list.add(br.readLine()); }while(br.ready()); br.close(); String[] text = new String[list.size()]; list.toArray(text); return text; } }