n, k = map(int, input().split())
ans = 0
count = 0

if k == 1:
  print(1)
else:
  for i in range(1, n+1):
    while i < k:
      i *= 2
      count += 1
    ans = ans + 0.5**count/n
    count = 0
  
  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 count = 0 count 0 if k == 1:
  print(1)
else:
  for i in range(1, n+1):
    while i < k:
      i *= 2
      count += 1
    ans = ans + 0.5**count/n
    count = 0
  
  print(ans) k == 1 k 1 print(1) print 1 for i in range(1, n+1):
    while i < k:
      i *= 2
      count += 1
    ans = ans + 0.5**count/n
    count = 0
  
   i range(1, n+1) range 1 n+1 n 1 while i < k:
      i *= 2
      count += 1
     i < k i k i *= 2 i 2 count += 1 count 1 ans = ans + 0.5**count/n ans ans + 0.5**count/n ans 0.5**count/n 0.5**count 0.5 count n count = 0 count 0 print(ans) print ans count = 0 0 count count = 0 0 count ans = 0 0 ans n, k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k i *= 2 2 i ans = ans + 0.5**count/n ans + 0.5**count/n ans count += 1 1 count
n, k = map(int, input().split())
ans = 0
count = 0

if k == 1:
  print(1)
else:
  for i in range(1, n+1):
    while i < k:
      i *= 2
      count += 1
    ans = ans + 0.5**count/n
    count = 0
  
  print(ans)