n, k = map(int, input().split())
arr = []
for i in range(n):
  c = i + 1
  p = 1 / n
  while 1 <=  c <= k - 1:
    c *= 2
    p *= 0.5
  arr.append(p)
ans = sum(arr)
print(ans) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k arr = [] arr [] for i in range(n):
  c = i + 1
  p = 1 / n
  while 1 <=  c <= k - 1:
    c *= 2
    p *= 0.5
  arr.append(p) i range(n) range n c = i + 1 c i + 1 i 1 p = 1 / n p 1 / n 1 n while 1 <=  c <= k - 1:
    c *= 2
    p *= 0.5
   1 <=  c <= k - 1 1 <=  c 1 c k - 1 k 1 c *= 2 c 2 p *= 0.5 p 0.5 arr.append(p) arr.append arr append p ans = sum(arr) ans sum(arr) sum arr print(ans) print ans c *= 2 2 c p *= 0.5 0.5 p ans = sum(arr) sum(arr) ans k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n p = 1 / n 1 / n p arr = [] [] arr c = i + 1 i + 1 c
n, k = map(int, input().split())
arr = []
for i in range(n):
  c = i + 1
  p = 1 / n
  while 1 <=  c <= k - 1:
    c *= 2
    p *= 0.5
  arr.append(p)
ans = sum(arr)
print(ans)