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