import math

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

ans = 0
for i in range(1, n+1):
    a = max(math.ceil(math.log2(k/i)), 0)
    ans += 0.5**a
print(ans/n) import math math 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):
    a = max(math.ceil(math.log2(k/i)), 0)
    ans += 0.5**a i range(1, n+1) range 1 n+1 n 1 a = max(math.ceil(math.log2(k/i)), 0) a max(math.ceil(math.log2(k/i)), 0) max math.ceil(math.log2(k/i)) math.ceil math ceil math.log2(k/i) math.log2 math log2 k/i k i 0 ans += 0.5**a ans 0.5**a 0.5 a print(ans/n) print ans/n ans n ans = 0 0 ans k = map(int, input().split()) map(int, input().split()) k ans += 0.5**a 0.5**a ans a = max(math.ceil(math.log2(k/i)), 0) max(math.ceil(math.log2(k/i)), 0) a n, k = map(int, input().split()) map(int, input().split()) n
import math

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

ans = 0
for i in range(1, n+1):
    a = max(math.ceil(math.log2(k/i)), 0)
    ans += 0.5**a
print(ans/n)