import Control.Monad main::IO() main = do playNum<-fmap read getLine xxs <- sequence . replicate playNum $ getLine forM_ xxs $ \xs->do let n:k:[] = fmap read . words $ xs hantei n k |(n-1) `mod` (k+1)==0 ="Lose" |otherwise ="Win" putStrLn $ hantei n k