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

ret=0
for i in range(1,n+1):
    tmp=1/n
    now=i
    while now<k:
        now*=2
        tmp/=2
    ret+=tmp

print(ret) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k ret=0 ret 0 for i in range(1,n+1):
    tmp=1/n
    now=i
    while now<k:
        now*=2
        tmp/=2
    ret+=tmp i range(1,n+1) range 1 n+1 n 1 tmp=1/n tmp 1/n 1 n now=i now i while now<k:
        now*=2
        tmp/=2
     now<k now k now*=2 now 2 tmp/=2 tmp 2 ret+=tmp ret tmp print(ret) print ret ret=0 0 ret k=map(int,input().split()) map(int,input().split()) k ret+=tmp tmp ret tmp/=2 2 tmp now=i i now tmp=1/n 1/n tmp n,k=map(int,input().split()) map(int,input().split()) n now*=2 2 now
n,k=map(int,input().split())

ret=0
for i in range(1,n+1):
    tmp=1/n
    now=i
    while now<k:
        now*=2
        tmp/=2
    ret+=tmp

print(ret)