n=int(eval(input()))

if n%2==0:

    print((1/2))

else:

    print(((n+1)/2/n))
N = int(eval(input()))

 

if N%2 == 0:

  odd = N/2

else:

  odd = (N-1)/2 + 1

print((odd/N))
n = int(eval(input()))
if n % 2 == 0:
    print((1 / 2))
else:
    print(((n + 1) / 2 / n))

N = int(eval(input()))
if N % 2 == 0:
    odd = N / 2
else:
    odd = (N - 1) / 2 + 1
print((odd / N))

-n = int(eval(input())) -if n % 2 == 0: -    print((1 / 2)) +N = int(eval(input())) +if N % 2 == 0: +    odd = N / 2 -    print(((n + 1) / 2 / n)) +    odd = (N - 1) / 2 + 1 +print((odd / N))