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