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