#include using namespace std; int main() { int P; cin >> P; while (P--) { int N, K; cin >> N >> K; cout << ((N - 1) % (K + 1) != 0 ? "Win" : "Lose") << endl; } }