import math
n,k = map(int, input().split())
c = 0
for i in range(1,n+1):
  if k//i == 0:
    c += 1/n
  else:
    t = math.ceil(math.log2(k/i))
    c += 0.5**t/n
print(c) import math math n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k c = 0 c 0 for i in range(1,n+1):
  if k//i == 0:
    c += 1/n
  else:
    t = math.ceil(math.log2(k/i))
    c += 0.5**t/n i range(1,n+1) range 1 n+1 n 1 if k//i == 0:
    c += 1/n
  else:
    t = math.ceil(math.log2(k/i))
    c += 0.5**t/n k//i == 0 k//i k i 0 c += 1/n c 1/n 1 n t = math.ceil(math.log2(k/i)) t math.ceil(math.log2(k/i)) math.ceil math ceil math.log2(k/i) math.log2 math log2 k/i k i c += 0.5**t/n c 0.5**t/n 0.5**t 0.5 t n print(c) print c k = map(int, input().split()) map(int, input().split()) k t = math.ceil(math.log2(k/i)) math.ceil(math.log2(k/i)) t c += 0.5**t/n 0.5**t/n c c += 1/n 1/n c c = 0 0 c n,k = map(int, input().split()) map(int, input().split()) n
import math
n,k = map(int, input().split())
c = 0
for i in range(1,n+1):
  if k//i == 0:
    c += 1/n
  else:
    t = math.ceil(math.log2(k/i))
    c += 0.5**t/n
print(c)