#!/usr/bin/env python3
n,k=map(int,input().split())
odd = 0
for i in range(1,n+1):
    a=0
    while k > i*2**a:
        a+=1
    odd += 2**-a
print(odd/n) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k odd = 0 odd 0 for i in range(1,n+1):
    a=0
    while k > i*2**a:
        a+=1
    odd += 2**-a i range(1,n+1) range 1 n+1 n 1 a=0 a 0 while k > i*2**a:
        a+=1
     k > i*2**a k i*2**a i 2**a 2 a a+=1 a 1 odd += 2**-a odd 2**-a 2 -a a print(odd/n) print odd/n odd n a=0 0 a a+=1 1 a k=map(int,input().split()) map(int,input().split()) k odd = 0 0 odd odd += 2**-a 2**-a odd n,k=map(int,input().split()) map(int,input().split()) n
#!/usr/bin/env python3
n,k=map(int,input().split())
odd = 0
for i in range(1,n+1):
    a=0
    while k > i*2**a:
        a+=1
    odd += 2**-a
print(odd/n)
