min_ k x
    | x - k + 1 < -1000000 = -1000000
    | otherwise = x - k + 1

max_ k x
    | x + k - 1 > 1000000 = 1000000
    | otherwise = x + k - 1

main = do
    s <- (map read . words) <$> getLine :: IO [Int]
    let k = s !! 0
    let x = s !! 1
    sequence $ map print [min_ k x .. max_ k x]