n, k = map(int, input().split())
ans = 0.0
for i in range(1, n+1):
    tmp = 1 / n
    now = i
    while now < k:
        now *= 2
        tmp /= 2
    ans += tmp

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

print(ans)