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