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

ans = 0.0
for x in range(1, n + 1):
    y = x
    m = 0
    while y <= k - 1:
        m += 1
        y *= 2
    ans += 1 / (2 ** m)
print(ans / n) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k ans = 0.0 ans 0.0 for x in range(1, n + 1):
    y = x
    m = 0
    while y <= k - 1:
        m += 1
        y *= 2
    ans += 1 / (2 ** m) x range(1, n + 1) range 1 n + 1 n 1 y = x y x m = 0 m 0 while y <= k - 1:
        m += 1
        y *= 2
     y <= k - 1 y k - 1 k 1 m += 1 m 1 y *= 2 y 2 ans += 1 / (2 ** m) ans 1 / (2 ** m) 1 2 ** m 2 m print(ans / n) print ans / n ans n m += 1 1 m n, k = map(int, input().split()) map(int, input().split()) n ans = 0.0 0.0 ans m = 0 0 m ans += 1 / (2 ** m) 1 / (2 ** m) ans y = x x y y *= 2 2 y k = map(int, input().split()) map(int, input().split()) k
n, k = map(int, input().split())

ans = 0.0
for x in range(1, n + 1):
    y = x
    m = 0
    while y <= k - 1:
        m += 1
        y *= 2
    ans += 1 / (2 ** m)
print(ans / n)