import random



int_N  = int(eval(input()))

i = 1

Kisu = 0



for i in range(int_N):

    if i % 2 == 0:

        Kisu += 1



print((Kisu/int_N))


int_N = int(eval(input()))

Kisu = 0



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

    if (i % 2) == 1:

        Kisu += 1



print((Kisu/int_N))

import random

int_N = int(eval(input()))
i = 1
Kisu = 0
for i in range(int_N):
    if i % 2 == 0:
        Kisu += 1
print((Kisu / int_N))

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

-import random - -i = 1 -for i in range(int_N): -    if i % 2 == 0: +for i in range(1, int_N + 1): +    if (i % 2) == 1: