N, K = map(int, input().split())

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

ans = 0
for point in range(1, N+1):
  cnt = 1/N
  while (point<K):
    cnt /= 2
    point *= 2
  ans += cnt
print(ans)