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