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