const main = input =>{
    const IN = parseInt(input);
    count = 0;
    result =0;
    for(var i=1; i<=IN; i++){
        if(i % 2 !==0){
            count++;
        }
    }
    console.log(count/IN);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));