import java.util.Scanner; class main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int P = Integer.parseInt(sc.next()); String Judge[] = new String[P]; for(int i = 0; i < P; i++){ int N = Integer.parseInt(sc.next()); int K = Integer.parseInt(sc.next()); if( N % (K + 1) == 1){ Judge[i] = "Lose"; } else{ Judge[i] = "Win"; } } for(int i = 0; i < P; i++){ System.out.println(Judge[i]); } } }