import java.util.Scanner; public class Main { 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(); f(N, K); } } private static void f(int n, int k) { if ((n - 1) % (k + 1) != 0) { System.out.println("Win"); } else { System.out.println("Lose"); } } }