fun main(arg: Array<String>) {
    val (K, X) = listOfInt()
    val max = 1000000
    val min = -max
    var l = X - K + 1; if (l < min) l = min
    var r = X + K - 1; if (r > max) r = max
    val ans = mutableListOf<Int>()
    for (n in l..r) ans.add(n)
    println(ans.joinToString(separator = " "))
}
fun next() = readLine()!!
fun listOfString() = next().split(" ")
fun listOfInt(delta: Int = 0) = listOfString().map { Integer.parseInt(it) + delta }
