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