#include using namespace std; typedef long long int ll; typedef pair P; typedef pair Pll; typedef vector Vi; typedef tuple T; #define FOR(i,s,x) for(int i=s;i<(int)(x);i++) #define REP(i,x) FOR(i,0,x) #define ALL(c) c.begin(), c.end() #define DUMP( x ) cerr << #x << " = " << ( x ) << endl int dp[120010]; int N, K; int main() { // use scanf in CodeForces! cin.tie(0); ios_base::sync_with_stdio(false); int P; cin >> P; REP(i, P) { cin >> N >> K; cout << (N % (K + 1) == 1 ? "Lose" : "Win") << endl; } return 0; }