N, K = map(int, input().split())
ans = 0
for x in range(1, N + 1):
    cnt = 0
    while x < K:
        cnt += 1
        x *= 2
    ans += (1 / N) * (1 / 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 x in range(1, N + 1):
    cnt = 0
    while x < K:
        cnt += 1
        x *= 2
    ans += (1 / N) * (1 / 2) ** cnt x range(1, N + 1) range 1 N + 1 N 1 cnt = 0 cnt 0 while x < K:
        cnt += 1
        x *= 2
     x < K x K cnt += 1 cnt 1 x *= 2 x 2 ans += (1 / N) * (1 / 2) ** cnt ans (1 / N) * (1 / 2) ** cnt 1 / N 1 N (1 / 2) ** cnt 1 / 2 1 2 cnt print(ans) print ans N, K = map(int, input().split()) map(int, input().split()) N ans = 0 0 ans ans += (1 / N) * (1 / 2) ** cnt (1 / N) * (1 / 2) ** cnt ans cnt += 1 1 cnt cnt = 0 0 cnt K = map(int, input().split()) map(int, input().split()) K x *= 2 2 x
N, K = map(int, input().split())
ans = 0
for x in range(1, N + 1):
    cnt = 0
    while x < K:
        cnt += 1
        x *= 2
    ans += (1 / N) * (1 / 2) ** cnt
print(ans)
