#include using namespace std; int main(){ int T; cin >> T; while (T--){ int N, K; cin >> N >> K; puts(N%(K+1) == 1? "Lose": "Win"); } }