from math import log2,ceil
n,k=[int(s) for s in input().split()]

sum=0
for t in range(1,n+1):
    if t>=k:
        sum+=1
    else:
        sum+=1/(2**ceil(log2(k/t)))
print(sum/n) from math import log2,ceil int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s n,k=[int(s) for s in input().split()] n [int(s) for s in input().split()] k sum=0 sum 0 for t in range(1,n+1):
    if t>=k:
        sum+=1
    else:
        sum+=1/(2**ceil(log2(k/t))) t range(1,n+1) range 1 n+1 n 1 if t>=k:
        sum+=1
    else:
        sum+=1/(2**ceil(log2(k/t))) t>=k t k sum+=1 sum 1 sum+=1/(2**ceil(log2(k/t))) sum 1/(2**ceil(log2(k/t))) 1 2**ceil(log2(k/t)) 2 ceil(log2(k/t)) ceil log2(k/t) log2 k/t k t print(sum/n) print sum/n sum n k=[int(s) for s in input().split()] [int(s) for s in input().split()] k sum=0 0 sum sum+=1 1 sum sum+=1/(2**ceil(log2(k/t))) 1/(2**ceil(log2(k/t))) sum n,k=[int(s) for s in input().split()] [int(s) for s in input().split()] n
from math import log2,ceil
n,k=[int(s) for s in input().split()]

sum=0
for t in range(1,n+1):
    if t>=k:
        sum+=1
    else:
        sum+=1/(2**ceil(log2(k/t)))
print(sum/n)