N = int(eval(input()))

odds = N // 2

if N % 2 == 1:

    odds += 1

print((odds / N))
n = int(eval(input()))

ans = (n - n // 2) / n

print(ans)
N = int(eval(input()))
odds = N // 2
if N % 2 == 1:
    odds += 1
print((odds / N))

n = int(eval(input()))
ans = (n - n // 2) / n
print(ans)

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