n = int(eval(input()))



q, r = divmod(n, 2)

if r == 0:

    print((0.5))

else:

    print(((q + 1) / n))

n = int(eval(input()))



evens = n // 2

odds = n - evens



print((odds / n))

n = int(eval(input()))
q, r = divmod(n, 2)
if r == 0:
    print((0.5))
else:
    print(((q + 1) / n))

n = int(eval(input()))
evens = n // 2
odds = n - evens
print((odds / n))

-q, r = divmod(n, 2) -if r == 0: -    print((0.5)) -else: -    print(((q + 1) / n)) +evens = n // 2 +odds = n - evens +print((odds / n))