#include using namespace std; int main() { int p; cin >> p; vector n(p), k(p); for (int i = 0;i < p;i++) { cin >> n[i] >> k[i]; } for (int i = 0;i < p;i++) { vector win(n[i]+1); // win[n[i]] = true; for (int j = n[i] - 1;j >= 0;j--) { bool b = false; for (int l = 1;l <= k[i]&&l+j<=n[i];l++) { if (!win[l + j]) { b = true; break; } } win[j] = b; } cout << (win[0] ? "Win" : "Lose") << endl; } return 0; }