#include #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) for(int i=0;i<(n);i++) int N,K; int P; int dp[120001]; void solve(){ REP(i,N){ dp[i] = 0; } dp[N-1] = 1; for(int i=N-2;i>-1;i--){ int flag = 1; for (int j=1;j<=K;j++){ if ((i+j)>=N){ break; }else if (dp[i+j]){ flag = 0; break; } } dp[i] = flag; } if (dp[0]){ printf("Lose\n"); }else{ printf("Win\n"); } } int main(void){ scanf("%d",&P); REP(i,P){ scanf("%d %d",&N,&K); solve(); } return 0; }