#include #include #include #include #include #include #include #include #include #include #include #include #include #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() using namespace std; typedef long long ll; typedef pair pi; typedef pair pl; typedef pair pls; int main() { int p; cin >> p; for (int i = 0; i < p; i++) { int n, k; cin >> n >> k; while (1) { if (n - 2 - (k + 1) >= 0) { n -= k + 1; } else break; } if (((n - 1) / k)%2 == 0 || (n-1)%k == 0) { cout << "Win" << endl; } else cout << "Lose" << endl; } return 0; }