let i = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n').slice(1, -1) i.forEach((e) => { let nk = e.split(' ').map((x) => parseInt(x)) if (nk[0] <= nk[1]) console.log('Win') else { let w = nk[0] - 1 while (w - nk[1] - 1 > 0) { w -= nk[1] + 1 } console.log(w <= nk[1] ? 'Win' : 'Lose') } })