a,b=map(int, input().split())
ans = 0
p = 0

for i in range(1,a+1):
    c = i
    while c < b:
        c = c*2
        ans += 1
    p += 1/2**ans
    ans = 0

print(p/a) a,b=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b ans = 0 ans 0 p = 0 p 0 for i in range(1,a+1):
    c = i
    while c < b:
        c = c*2
        ans += 1
    p += 1/2**ans
    ans = 0 i range(1,a+1) range 1 a+1 a 1 c = i c i while c < b:
        c = c*2
        ans += 1
     c < b c b c = c*2 c c*2 c 2 ans += 1 ans 1 p += 1/2**ans p 1/2**ans 1 2**ans 2 ans ans = 0 ans 0 print(p/a) print p/a p a p = 0 0 p c = i i c p += 1/2**ans 1/2**ans p a,b=map(int, input().split()) map(int, input().split()) a ans = 0 0 ans ans += 1 1 ans c = c*2 c*2 c b=map(int, input().split()) map(int, input().split()) b ans = 0 0 ans
a,b=map(int, input().split())
ans = 0
p = 0

for i in range(1,a+1):
    c = i
    while c < b:
        c = c*2
        ans += 1
    p += 1/2**ans
    ans = 0

print(p/a)