import java.util.Scanner; public class Main { static boolean memo[]; static int ans, min; public static void main(String[] args) { Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int p = sc.nextInt(); for (int i = 0; i < p; i++) { int n = sc.nextInt(); int k = sc.nextInt(); if ((n - 1) % (k + 1) == 0) { System.out.println("Lose"); } else { System.out.println("Win"); } } } }