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