main=input=>{i=input.split(/ |\n/).map(e => parseInt(e));return!!(i[1]==i[2]?Math.floor(i[1]/i[0]):Math.floor(i[2]/i[0])-Math.floor(i[1]/i[0]))};console.log(main(require('fs').readFileSync('/dev/stdin','utf8')));