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

win = []

for i in range(1, n+1):
  if i >= k:
    win.append(1/n)
  else:
    t = True
    count = 0
    while t == True:
      if i < k:
        i = 2*i
        count += 1
      else:
        t = False
    win.append((((1/2)**count)*(min(n,k)/n))/min(n,k))

total = int(sum(win)*(10**12))/(10**12)
print(total) n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k win = [] win [] for i in range(1, n+1):
  if i >= k:
    win.append(1/n)
  else:
    t = True
    count = 0
    while t == True:
      if i < k:
        i = 2*i
        count += 1
      else:
        t = False
    win.append((((1/2)**count)*(min(n,k)/n))/min(n,k)) i range(1, n+1) range 1 n+1 n 1 if i >= k:
    win.append(1/n)
  else:
    t = True
    count = 0
    while t == True:
      if i < k:
        i = 2*i
        count += 1
      else:
        t = False
    win.append((((1/2)**count)*(min(n,k)/n))/min(n,k)) i >= k i k win.append(1/n) win.append win append 1/n 1 n t = True t True count = 0 count 0 while t == True:
      if i < k:
        i = 2*i
        count += 1
      else:
        t = False
     t == True t True if i < k:
        i = 2*i
        count += 1
      else:
        t = False
     i < k i k i = 2*i i 2*i 2 i count += 1 count 1 t = False t False win.append((((1/2)**count)*(min(n,k)/n))/min(n,k)) win.append win append (((1/2)**count)*(min(n,k)/n))/min(n,k) ((1/2)**count)*(min(n,k)/n) (1/2)**count 1/2 1 2 count min(n,k)/n min(n,k) min n k n min(n,k) min n k total = int(sum(win)*(10**12))/(10**12) total int(sum(win)*(10**12))/(10**12) int(sum(win)*(10**12)) int sum(win)*(10**12) sum(win) sum win 10**12 10 12 10**12 10 12 print(total) print total t = False False t i = 2*i 2*i i total = int(sum(win)*(10**12))/(10**12) int(sum(win)*(10**12))/(10**12) total n,k = map(int, input().split()) map(int, input().split()) n win = [] [] win count = 0 0 count k = map(int, input().split()) map(int, input().split()) k t = True True t count += 1 1 count
n,k = map(int, input().split())

win = []

for i in range(1, n+1):
  if i >= k:
    win.append(1/n)
  else:
    t = True
    count = 0
    while t == True:
      if i < k:
        i = 2*i
        count += 1
      else:
        t = False
    win.append((((1/2)**count)*(min(n,k)/n))/min(n,k))

total = int(sum(win)*(10**12))/(10**12)
print(total)