n,k=map(int,input().split())
b=0
s=0
for i in range(1,n+1):
    for j in range(20):
        if i*(2**j)>=k:
            s=j
            break
    b+=1/(2**s)
print(b/n) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k b=0 b 0 s=0 s 0 for i in range(1,n+1):
    for j in range(20):
        if i*(2**j)>=k:
            s=j
            break
    b+=1/(2**s) i range(1,n+1) range 1 n+1 n 1 for j in range(20):
        if i*(2**j)>=k:
            s=j
            break
     j range(20) range 20 if i*(2**j)>=k:
            s=j
            break
     i*(2**j)>=k i*(2**j) i 2**j 2 j k s=j s j break b+=1/(2**s) b 1/(2**s) 1 2**s 2 s print(b/n) print b/n b n s=j j s n,k=map(int,input().split()) map(int,input().split()) n k=map(int,input().split()) map(int,input().split()) k b=0 0 b b+=1/(2**s) 1/(2**s) b s=0 0 s
n,k=map(int,input().split())
b=0
s=0
for i in range(1,n+1):
    for j in range(20):
        if i*(2**j)>=k:
            s=j
            break
    b+=1/(2**s)
print(b/n)
