#include #include using namespace std; int main() { /* N , K N - 1 <= K ⇒ Win (N-1)%(K+1) == 0 ⇒ Lose */ cin.tie(0); ios::sync_with_stdio(false); int P, N, K; cin >> P; for (int i = 0; i < P;i++) { cin >> N >> K; if ((N - 1) % (K + 1) != 0) { cout << "Win" << endl; } else { cout << "Lose" << endl; } } return 0; }