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