#include using namespace std; int main(){ int P, N, K; cin>>P; for(int i = 1; i <= P; i++){ cin>>N>>K; bool f = true; cout<<((N-1)%(K+1)?"Win":"Lose")<