N, K = map(int, input().split())
ans = 0.0
for n in range(1, N+1):
  m = n
  a = 1
  while m < K:
    m <<= 1
    a /= 2
  ans += a
print(ans / N) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K ans = 0.0 ans 0.0 for n in range(1, N+1):
  m = n
  a = 1
  while m < K:
    m <<= 1
    a /= 2
  ans += a n range(1, N+1) range 1 N+1 N 1 m = n m n a = 1 a 1 while m < K:
    m <<= 1
    a /= 2
   m < K m K m <<= 1 m 1 a /= 2 a 2 ans += a ans a print(ans / N) print ans / N ans N m <<= 1 1 m K = map(int, input().split()) map(int, input().split()) K ans = 0.0 0.0 ans a /= 2 2 a N, K = map(int, input().split()) map(int, input().split()) N m = n n m a = 1 1 a ans += a a ans
N, K = map(int, input().split())
ans = 0.0
for n in range(1, N+1):
  m = n
  a = 1
  while m < K:
    m <<= 1
    a /= 2
  ans += a
print(ans / N)