
const main = (k,x) => {
    let r = []
    for(let i = x;i<x+k;i++) {
        r.push(i)
    }

    for(let i = x;i>x-k;i--) {
        r.push(i)
    }
    
    return r.filter( (elem,index,self) => {
        return self.indexOf(elem) === index

    })
}

const input = require('fs').readFileSync('/dev/stdin','utf8').split('\n')[0].split(" ")
const kx = input.map(x => parseInt(x,10))
console.log(main(kx[0],kx[1]).sort((a,b) => a - b).join(" "))
