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

ans = 0.0

for i in range(1, N + 1):
    num = i
    t = 0
    while num < K:
        t += 1
        num *= 2

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

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

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

ans = 0.0

for i in range(1, N + 1):
    num = i
    t = 0
    while num < K:
        t += 1
        num *= 2

    ans += 1 / 2 ** t
    
print(ans / N)