#include using namespace std; int main(){ int p,n,k=0; cin>> p; while (p--){ cin>>n>>k; if(n%(k+1) == 1) cout<<"Lose"<