use std::io::Read; fn main() { let mut buf = String::new(); std::io::stdin().read_to_string(&mut buf).unwrap(); let mut iter = buf.split_whitespace(); let mut p: usize = iter.next().unwrap().parse().unwrap(); while p > 0 { let n: usize = iter.next().unwrap().parse().unwrap(); let k: usize = iter.next().unwrap().parse().unwrap(); println!("{}", if (n-1) % (k+1) == 0 {"Lose"} else {"Win"}); p -= 1; } }