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

ans = 0

def calc(x, goal):
    res = 0
    while x < goal:
        x *= 2
        res += 1
    return res    


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

ans = 0

def calc(x, goal):
    res = 0
    while x < goal:
        x *= 2
        res += 1
    return res    


for i in range(1, N+1):
    cnt = calc(i, K)
    ans += 1 / N * ((1 / 2) ** cnt)

print(ans)