N = float(input())
if N % 2 == 0:
    result = 0.5
else:
    result = 1 - N // 2 / N
print(result)

5dfb72f96efc700ee56c9627ce813b67510619e8
<mask token>

<mask token>
if N % 2 == 0:
    result = 0.5
else:
    result = 1 - N // 2 / N
print(result)

N = float(input())
if N % 2 == 0:
    result = 0.5
else:
    result = 1 - N // 2 / N
print(result)
