N, K = map(int, input().split())

ans = 0.0
for i in range(1, N + 1):
    x = 0
    while i * (2 ** x) < K:
        x += 1

    ans += 1 / (N * 2 ** x)

print(ans) 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 i in range(1, N + 1):
    x = 0
    while i * (2 ** x) < K:
        x += 1

    ans += 1 / (N * 2 ** x) i range(1, N + 1) range 1 N + 1 N 1 x = 0 x 0 while i * (2 ** x) < K:
        x += 1

     i * (2 ** x) < K i * (2 ** x) i 2 ** x 2 x K x += 1 x 1 ans += 1 / (N * 2 ** x) ans 1 / (N * 2 ** x) 1 N * 2 ** x N 2 ** x 2 x print(ans) print ans ans = 0.0 0.0 ans K = map(int, input().split()) map(int, input().split()) K x = 0 0 x x += 1 1 x N, K = map(int, input().split()) map(int, input().split()) N ans += 1 / (N * 2 ** x) 1 / (N * 2 ** x) ans
N, K = map(int, input().split())

ans = 0.0
for i in range(1, N + 1):
    x = 0
    while i * (2 ** x) < K:
        x += 1

    ans += 1 / (N * 2 ** x)

print(ans)