#include int main() { int P; std::cin >> P; for(int p=0;p> N; int K; std::cin >> K; if(N-1<=K) { std::cout << "WIN" << std::endl; } else { int *dp = new int[N]; for(int i=0 ; i<=K+2 ; i++) { dp[i] = true; } dp[1] = false; dp[K+2] = false; for(int i=K+3;i<=N;i++) { dp[i] = dp[i-1-K]; } if(dp[N]) std::cout << "WIN"; else std::cout << "LOSE"; std::cout << std::endl; delete[] dp; } } return 0; }