"use strict";
const Main = (input) =>{
   let xs = input.trim().split(' ');
   let N = Math.floor(xs[0]/2); 
   let ans = 1-N/xs[0];
   console.log(ans);
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));