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