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

import math
ans = 0
for i in range(1,n+1):
  if i < k:
    t = math.log10(k/i)/math.log10(2)
    if t == int(t):
      ans += 1/(2**t)
    else:
      ans += 1/(2**(int(t+1)))
  else:
    ans += 1
  
print(ans/n) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k import math math ans = 0 ans 0 for i in range(1,n+1):
  if i < k:
    t = math.log10(k/i)/math.log10(2)
    if t == int(t):
      ans += 1/(2**t)
    else:
      ans += 1/(2**(int(t+1)))
  else:
    ans += 1
   i range(1,n+1) range 1 n+1 n 1 if i < k:
    t = math.log10(k/i)/math.log10(2)
    if t == int(t):
      ans += 1/(2**t)
    else:
      ans += 1/(2**(int(t+1)))
  else:
    ans += 1
   i < k i k t = math.log10(k/i)/math.log10(2) t math.log10(k/i)/math.log10(2) math.log10(k/i) math.log10 math log10 k/i k i math.log10(2) math.log10 math log10 2 if t == int(t):
      ans += 1/(2**t)
    else:
      ans += 1/(2**(int(t+1)))
   t == int(t) t int(t) int t ans += 1/(2**t) ans 1/(2**t) 1 2**t 2 t ans += 1/(2**(int(t+1))) ans 1/(2**(int(t+1))) 1 2**(int(t+1)) 2 int(t+1) int t+1 t 1 ans += 1 ans 1 print(ans/n) print ans/n ans n k = map(int, input().split()) map(int, input().split()) k ans += 1/(2**(int(t+1))) 1/(2**(int(t+1))) ans ans += 1 1 ans t = math.log10(k/i)/math.log10(2) math.log10(k/i)/math.log10(2) t n, k = map(int, input().split()) map(int, input().split()) n ans = 0 0 ans ans += 1/(2**t) 1/(2**t) ans
n, k = map(int, input().split())

import math
ans = 0
for i in range(1,n+1):
  if i < k:
    t = math.log10(k/i)/math.log10(2)
    if t == int(t):
      ans += 1/(2**t)
    else:
      ans += 1/(2**(int(t+1)))
  else:
    ans += 1
  
print(ans/n)