fun main(args: Array<String>){
    val n = readLine()!!.toInt()
    var a: Int = 0
    for(i in 1..n+1) {
        if(i % 2 == 0){
            a++
        }
    }
    println("%.10f".format(a / n.toDouble()))
}

