fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    println(op142a(n))
}

fun op142a(n: Int): Double {
    val oddCount = IntRange(0, n).filter { it % 2 != 0 }.count()
    return oddCount.toDouble() / n.toDouble()
}
