#include using namespace std; typedef long long ll; typedef pair P; const int INF = 1e9; const int mod = 1e9+7; const double EPS = 1e-10; const double PI = acos(-1.0); int main() { int p; cin >> p; for(int i = 0; i < p; i++){ int n,k; cin >> n >> k; if(n-1 <= k) cout << "Win" << endl; else cout << (n%(k-1) ? "Lose" : "Win") << endl; } return 0; }