#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int llint; const int INF = 1000000; const llint LINF = 100000000; int main() { int p; int n[20000] = { 0 }, k[200000] = { 0 }; cin >> p; for (int i = 0; i < p; i++) { cin >> n[i] >> k[i]; } for (int i = 0; i < p; i++) { if (n[i] <= k[i])cout << "Win" << endl; else if (n[i] % (k[i] - 1)==0) { cout << "Win" << endl; } else cout << "Lose" << endl; }return 0; }