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

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

ans = 0
for i in range(1,n+1):
  t = 0
  while i < k:
    i*=2
    t += 1
  ans += 0.5**t/n
print(ans)