let rec range l r =
    if l > r then []
    else l :: range (l + 1) r

let solve k x =
    let left = max (-1000000) (x - k + 1) in
    let right = min 1000000 (x + k - 1) in
    range left right

let () =
    Scanf.scanf "%d %d\n" @@ fun k x ->
    Printf.printf "%s\n" @@ String.concat " " (List.map string_of_int @@ solve k x)
