function Main(input) {
    var N = parseInt(input,10);
    var c = 0;
    for(var i = 1; i < N+1; i++){
        if((i % 2) != 0){
            c++
        }
    }
    console.log(c/N);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));