import sys

from fractions import gcd

from itertools import groupby as gb

from itertools import permutations as perm

from itertools import combinations as comb

from collections import Counter as C

from collections import defaultdict as dd

sys.setrecursionlimit(10**5)

def y(f):

    if f:

        print('Yes')

    else:

        print('No')

def Y(f):

    if f:

        print('YES')

    else:

        print('NO')



n = int(eval(input()))

if n % 2 == 0:

    print((0.5))

else:

    print(((n - n // 2) / n))

n = int(eval(input()))

odd = 0

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

    if i % 2 == 1:

        odd += 1

print((odd / n))

import sys
from fractions import gcd
from itertools import groupby as gb
from itertools import permutations as perm
from itertools import combinations as comb
from collections import Counter as C
from collections import defaultdict as dd

sys.setrecursionlimit(10**5)


def y(f):
    if f:
        print("Yes")
    else:
        print("No")


def Y(f):
    if f:
        print("YES")
    else:
        print("NO")


n = int(eval(input()))
if n % 2 == 0:
    print((0.5))
else:
    print(((n - n // 2) / n))

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

-import sys -from fractions import gcd -from itertools import groupby as gb -from itertools import permutations as perm -from itertools import combinations as comb -from collections import Counter as C -from collections import defaultdict as dd - -sys.setrecursionlimit(10**5) - - -def y(f): -    if f: -        print("Yes") -    else: -        print("No") - - -def Y(f): -    if f: -        print("YES") -    else: -        print("NO") - - -if n % 2 == 0: -    print((0.5)) -else: -    print(((n - n // 2) / n)) +odd = 0 +for i in range(1, n + 1): +    if i % 2 == 1: +        odd += 1 +print((odd / n))