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

ans = 0
for i in range(1, n + 1):
    cnt = 0
    while i * 2**cnt < k:
        cnt += 1
    ans += 1 / (n * 2**cnt)

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

ans = 0
for i in range(1, n + 1):
    cnt = 0
    while i * 2**cnt < k:
        cnt += 1
    ans += 1 / (n * 2**cnt)

print(ans)