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


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


for i in range(1,n+1):
    cnt = 0
    while i <=k-1:
        cnt += 1
        i *= 2
    ans += 1/n * (1/2) **cnt
print(ans)