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