use std::io::{self, BufRead}; fn main() { let input = io::stdin() .lock() .lines() .map(|l| { l.unwrap() .split_whitespace() .map(|n| n.parse::().unwrap()) .collect::>() }) .collect::>(); for l in &input[1..] { if let &[n, k] = &l[..] { println!( "{}", match (n - 1) % (k + 1) { 0 => "Lose", _ => "Win", } ); } } }