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

ans = 0
for i in range(1,n+1):
    num = i
    cnt = 0
    while True:
        if num >= k: break
        num *= 2
        cnt += 1
    prob = 1/pow(2,cnt)
    ans += prob

ans /= n
print(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):
    num = i
    cnt = 0
    while True:
        if num >= k: break
        num *= 2
        cnt += 1
    prob = 1/pow(2,cnt)
    ans += prob i range(1,n+1) range 1 n+1 n 1 num = i num i cnt = 0 cnt 0 while True:
        if num >= k: break
        num *= 2
        cnt += 1
     True if num >= k: break
         num >= k num k num *= 2 num 2 cnt += 1 cnt 1 prob = 1/pow(2,cnt) prob 1/pow(2,cnt) 1 pow(2,cnt) pow 2 cnt ans += prob ans prob ans /= n ans n print(ans) print ans ans += prob prob ans cnt += 1 1 cnt n,k = map(int, input().split()) map(int, input().split()) n ans = 0 0 ans num = i i num prob = 1/pow(2,cnt) 1/pow(2,cnt) prob cnt = 0 0 cnt num *= 2 2 num ans /= n n ans k = map(int, input().split()) map(int, input().split()) k
n,k = map(int, input().split())

ans = 0
for i in range(1,n+1):
    num = i
    cnt = 0
    while True:
        if num >= k: break
        num *= 2
        cnt += 1
    prob = 1/pow(2,cnt)
    ans += prob

ans /= n
print(ans)