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