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

ans = 0
for i in range(1, N+1):
    tmp = 0
    check = i
    for j in range(1, 100):
        if check >= K:
            ans += 1 / (N * 2 ** tmp)
            break
        tmp += 1
        check *= 2

print(ans) N, K = list(map(int, input().split())) N list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split K ans = 0 ans 0 for i in range(1, N+1):
    tmp = 0
    check = i
    for j in range(1, 100):
        if check >= K:
            ans += 1 / (N * 2 ** tmp)
            break
        tmp += 1
        check *= 2 i range(1, N+1) range 1 N+1 N 1 tmp = 0 tmp 0 check = i check i for j in range(1, 100):
        if check >= K:
            ans += 1 / (N * 2 ** tmp)
            break
        tmp += 1
        check *= 2 j range(1, 100) range 1 100 if check >= K:
            ans += 1 / (N * 2 ** tmp)
            break
         check >= K check K ans += 1 / (N * 2 ** tmp) ans 1 / (N * 2 ** tmp) 1 N * 2 ** tmp N 2 ** tmp 2 tmp break tmp += 1 tmp 1 check *= 2 check 2 print(ans) print ans tmp += 1 1 tmp N, K = list(map(int, input().split())) list(map(int, input().split())) N check *= 2 2 check K = list(map(int, input().split())) list(map(int, input().split())) K ans += 1 / (N * 2 ** tmp) 1 / (N * 2 ** tmp) ans check = i i check ans = 0 0 ans tmp = 0 0 tmp
N, K = list(map(int, input().split()))

ans = 0
for i in range(1, N+1):
    tmp = 0
    check = i
    for j in range(1, 100):
        if check >= K:
            ans += 1 / (N * 2 ** tmp)
            break
        tmp += 1
        check *= 2

print(ans)