function Main(input) {
    input = parseInt(input, 10);  
    console.log(input);  
    var bunbo = input;
    var bunshi = Math.ceil(input/2);
    console.log(bunshi/bunbo);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));

