#include using namespace std; int main(){ int P; int N,K; cin>>P; for(int i=0;i>N>>K; if((N-1)%(K+1)==0) cout<<"Lose"<