n,k=map(int,input().split())

ans = 0

for i in range(1,n+1):
  p = i
  r = 1
  while p < k:
    p*=2
    r/=2
  ans+=r

ans/=n

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

ans = 0

for i in range(1,n+1):
  p = i
  r = 1
  while p < k:
    p*=2
    r/=2
  ans+=r

ans/=n

print(ans)