function main(input) {
  var D =D * 2 + 1
  if( N/D < N- D*2){
    console.log(Math.floor(N/D))
  }else{
    console.log(Math.floor(N/D)+1)
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));