#include #include #include #include #include using namespace std; int main(void) { int P; cin >> P; for (int i = 0; i < P; ++i) { int N, K; cin >> N >> K; if (N <= K) { cout << "Win" << endl; continue; } if((N/(K+1))%2==0){ cout << "Win" << endl; }else{ if(N%(K+1)==1){ cout << "Lose" << endl; }else{ cout << "Win" << endl; } } } return 0; }