#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define FOR(I,A,B) for(int I = (A); I < (B); ++I) typedef long long ll; int main(){ int p; cin >> p; while(p--){ ll n, k; cin >> n >> k; if(n <= k) cout << "Win" << endl; else cout << (n % (k - 1) == 0 ? "Win" : "Lose") << endl; } return 0; }