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