function main(input) {
  var n = input[0]-0;
  var a = 0;
  for(var i=1;i<=n;i++){
    if(i%2==1) a++;
  }
  console.log(a/n);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
