n = int(eval(input()))

if n % 2 == 0:

    print((n / 2 / n))

else:

    print(((n // 2 + 1) / n))

n = int(eval(input()))



odd_counter = 0

for i in range(1, n + 1):

    if i % 2 == 1:

        odd_counter += 1

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

n = int(eval(input()))
odd_counter = 0
for i in range(1, n + 1):
    if i % 2 == 1:
        odd_counter += 1
print((odd_counter / n))

-if n % 2 == 0: -    print((n / 2 / n)) -else: -    print(((n // 2 + 1) / n)) +odd_counter = 0 +for i in range(1, n + 1): +    if i % 2 == 1: +        odd_counter += 1 +print((odd_counter / n))