let solve n k = let rec inner m = if m < 0 then "Win" else if m = 0 then "Lose" else inner (m-k-1) in print_string @@ inner (n-1) let _ = let p = int_of_string @@ read_line() in for _ = 1 to p do let cond = String.split_on_char ' ' (read_line ()) in solve (int_of_string @@ List.nth cond 0) (int_of_string @@ List.nth cond 1) done