n, k = map(int, input().split())

ans = 0
for i in range(1, n + 1):
    j = i
    cnt = 1
    while j < k:
        j <<= 1
        cnt /= 2
    ans += cnt / n
print('{:10}'.format(ans)) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k ans = 0 ans 0 for i in range(1, n + 1):
    j = i
    cnt = 1
    while j < k:
        j <<= 1
        cnt /= 2
    ans += cnt / n i range(1, n + 1) range 1 n + 1 n 1 j = i j i cnt = 1 cnt 1 while j < k:
        j <<= 1
        cnt /= 2
     j < k j k j <<= 1 j 1 cnt /= 2 cnt 2 ans += cnt / n ans cnt / n cnt n print('{:10}'.format(ans)) print '{:10}'.format(ans) '{:10}'.format '{:10}' format ans k = map(int, input().split()) map(int, input().split()) k j = i i j n, k = map(int, input().split()) map(int, input().split()) n cnt = 1 1 cnt j <<= 1 1 j ans = 0 0 ans cnt /= 2 2 cnt ans += cnt / n cnt / n ans
n, k = map(int, input().split())

ans = 0
for i in range(1, n + 1):
    j = i
    cnt = 1
    while j < k:
        j <<= 1
        cnt /= 2
    ans += cnt / n
print('{:10}'.format(ans))